Re: Want help building C-like compiler

Juergen Kahrs <jkahrs@castor.atlas.de>
28 Mar 1999 17:01:08 -0500

          From comp.compilers

Related articles
Want help building C-like compiler songsuh@earthlink.net (Song) (1999-03-23)
Re: Want help building C-like compiler jkahrs@castor.atlas.de (Juergen Kahrs) (1999-03-28)
| List of all articles for this month |

From: Juergen Kahrs <jkahrs@castor.atlas.de>
Newsgroups: comp.compilers
Date: 28 Mar 1999 17:01:08 -0500
Organization: STN Atlas Elektronik GmbH SLE1
References: 99-03-069
Keywords: C, interpreter

Song wrote:


> I'm trying to write a simple scripting language with C/C++ look..


Sorry, but arent there enough of them around yet ?


> My goal is to make a compiler which understands C like language and spit out
> op-codes which will be fed to a virtual machine.
> Op-codes and virtual machine are worked on by someone else.


lcc is an ANSI/ISO compatible compiler which is already able to spit
out code for a "symbolic" target:


    http://www.cs.princeton.edu/software/lcc/


The symbolic code looks a bit confusing first because it is not in
"linear" execution order. The order represents a tree and has to be
linearized before execution.


+---------------------------------------------------------------------+
| Juergen Kahrs, STN Atlas Elektronik GmbH, D-28305 Bremen |
| Simulation Division Sebaldsbruecker Heerstr. 235 +49/421/457-2819 |
+----------- http://home.t-online.de/home/Juergen.Kahrs/ -------------+


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.