Related articles |
---|
[4 earlier articles] |
Re: Writing a compiler Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2008-10-23) |
Re: Writing a compiler m.collado@lml.ls.fi.upm.es (Manuel Collado) (2008-10-24) |
Re: Writing a compiler Ibeam2000@gmail.com (Nick) (2008-10-26) |
Re: Writing a compiler rajaram.officemails@gmail.com (RR) (2008-10-26) |
Re: Writing a compiler andresjriofrio@gmail.com (andresj) (2008-10-29) |
Re: Writing a compiler kamalpr@hp.com (kamal) (2008-10-29) |
Re: Writing a compiler tony@my.net (Tony) (2008-10-31) |
Re: Writing a compiler lkrupp@pssw.nospam.com.invalid (Louis Krupp) (2008-11-01) |
Re: Writing a compiler marcov@stack.nl (Marco van de Voort) (2008-11-02) |
Re: Writing a compiler chris.dollin@hp.com (Chris Dollin) (2008-11-03) |
Re: Writing a compiler lkrupp@pssw.com (Louis Krupp) (2008-11-03) |
Re: Writing a compiler alexc@TheWorld.com (Alex Colvin) (2008-11-03) |
Re: compiling C++ to C, was writing a compiler marcov@stack.nl (Marco van de Voort) (2008-11-04) |
[8 later articles] |
From: | "Tony" <tony@my.net> |
Newsgroups: | comp.compilers |
Date: | Fri, 31 Oct 2008 21:41:34 -0500 |
Organization: | at&t http://my.att.net/ |
References: | 08-10-037 08-10-046 08-10-047 |
Keywords: | code, C++, comment |
Posted-Date: | 01 Nov 2008 08:29:39 EDT |
"Nick" <Ibeam2000@gmail.com> wrote in message
>> Just use XSLT to generate the assembler code.
>
> If I can make a suggestion, use C or C++ as target language. Here
> you don't have to reinvent subroutine calling and the like, and you
> maintain compatibility with other things on the OS. Not to mention
> ease of moving around different OSes. And troubleshooting. Much
> easier.
I want to do exactly that to experiment with language features, but I
don't really know where to begin. Probably studying how CFront
generated C code? From what I've read, it seems that CFront couldn't
implement the whole language. How could it when introducing something
like '::' as the scoping operator when C doesn't have such a beast?
Tony
[cfront was a prototype, and it's a miracle it worked as well as it did.
If you want to see generated code, either get the Comeau compiler, or look
at the assembler output from something like GCC. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.