From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13989 invoked by alias); 30 Jul 2002 11:37:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13981 invoked from network); 30 Jul 2002 11:37:51 -0000 Received: from unknown (HELO tomts21-srv.bellnexxia.net) (209.226.175.183) by sources.redhat.com with SMTP; 30 Jul 2002 11:37:51 -0000 Received: from cfwe9j5icgo9ui ([64.228.173.43]) by tomts21-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with SMTP id <20020730113706.KNYY11845.tomts21-srv.bellnexxia.net@cfwe9j5icgo9ui> for ; Tue, 30 Jul 2002 07:37:06 -0400 From: "Etienne Fortin" To: Subject: Porting GCC without a working assembler and need for libgcc and other libraries Date: Tue, 30 Jul 2002 09:08:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-07/txt/msg01412.txt.bz2 I developped an ISA (Instruction Set Architecture) from the ground up. I have a working VM for that architecture. I also have an assembler and various other utilities. I would like to add a C/C++/Fortran/Other compiler for that architecture, and nothing is better than GCC in that respect. Here's some problems: 1) The executable files have a format that is part ascii, part binary and is not compatible with binutils. 2) The source are presented to the assembler in a format that is not compatible with as (gnu assembler). 3) The assembler I developped can't be used with GCC for various reasons. So in other words, there's no assembler for the architecture I can use with GCC. Here's what I want to do: 1) Create a cross compiler for the architecture that ONLY produce ASSEMBLER source. No runtime, no crt, no other problems. 2) Postprocess the assembler source with Perl so that the format is OK for the assembler I developped. 3) Assemble the file with my assembler. 4) ENJOY! So the big question is........ Can someone tell me how I can build GCC so that NO runtime libraries are build (not even libgcc) and in a way that the assembler is NOT needed (since there's no assembler for the architecture). And next how can I create that same GCC with the option -S always ON? Anyone good enough here to answer that difficult question? Etienne Fortin