Article View: gnu.gcc.help
Article #54299Re: Looking for a C -> C gcc compiler
From: Carl Edman
Date: Thu, 29 Nov 1990 07:22
Date: Thu, 29 Nov 1990 07:22
25 lines
1850 bytes
1850 bytes
In article <11828@spool.cs.wisc.edu> bart@romano.cs.wisc.edu (Bart Miller) writes:
Has anyone produced a gcc compiler that takes C as input and outputs
C?
This sounds rather strange, but I have several applications where I
want to annotate C code. The annotations require type and other symbol
table information.
If you have such (or know of someone who does), please send mail. Thanks
What you really need isn't a reflective auto-transpiler (to coin a
phrase, which - I'm sure - will be in common usage soon :-) but a
C-parser. I'd advise you to start and have a look at lex and yacc (or
, better, their gnu-equivalents flex and bison (source available from
prep.ai.mit.edu). Then you merely take the C-skeleton which (if I
remember correctly) is included in the gcc distribution and you are
ready to go.
Carl Edman
Theorectical Physicist,N.:A physicist whose | Send mail
existence is postulated, to make the numbers | to
balance but who is never actually observed | cedman@golem.ps.uci.edu
in the laboratory. | edmanc@uciph0.ps.uci.edu
Technical Details
Message-ID:
<CEDMAN.90Nov28232249@lynx.ps.uci.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!orion.oac.uci.edu!cedmanReferences:
<11828@spool.cs.wisc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,69c989fbaf734ef6 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1990-11-29 21:15:30 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: gnu.gcc.help Subject: Re: Looking for a C -> C gcc compiler Message-ID: <CEDMAN.90Nov28232249@lynx.ps.uci.edu> Date: 29 Nov 90 07:22:48 GMT References: <11828@spool.cs.wisc.edu> Organization: University of California, Irvine, USA. Lines: 25 Posted: Thu Nov 29 08:22:48 1990 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: bart@romano.cs.wisc.edu's message of 28 Nov 90 20:08:11 GMT