🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51869

Re: Can anyone make GCC compile from textual RTL?

#51869
From: Richard Stallman
Date: Tue, 16 Mar 1993 02:09
17 lines
1533 bytes
    I would like to use the "back end" of GNU CC to take some of the code
    generation load: I want to convert an existing Napier88 compiler to
    produce RTL, the internal register transfer language, and use the GCC
    back end to convert this to assembly language.

This is not the right way to do it.

Storing internal forms of a program in a file is a bad idea.  This
guarantees slow compilation.  Especially if the internal form is RTL.

GCC was designed to use RTL internally only.  Correct RTL for a given
program is very dependent on the particular target machine.  And the
RTL does not contain all the information about the program.

GCC was designed to support multiple languages.  It has an interface
specifically designed to go between the language-specific front end
and the rest of the compiler.  See tree.h for a description of it.
Technical Details
Message-ID: <9303160202.AA08208@mole.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms
References: <9303150833.AA08113@barney.teaching.cs.adelaide.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,97502a1691985898
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-15 18:16:32 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.gcc.help
Subject: Re: Can anyone make GCC compile from textual RTL?
Date: 15 Mar 1993 21:09:27 -0500
Organization: GNUs Not Usenet
Lines: 18
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9303160202.AA08208@mole.gnu.ai.mit.edu>
References: <9303150833.AA08113@barney.teaching.cs.adelaide.edu.au>