From: | Marco van de Voort <marcov@stack.nl> |
Newsgroups: | comp.compilers |
Date: | Fri, 13 Feb 2009 10:11:56 +0000 (UTC) |
Organization: | Stack Usenet News Service |
References: | 09-02-021 09-02-025 09-02-031 09-02-038 |
Keywords: | assembler, design, debug |
Posted-Date: | 14 Feb 2009 05:07:08 EST |
On 2009-02-11, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>>Then, to implement certain features of your language might involve
>>using casting and other tricks in the generated C when it's datatypes,
>>and using a lot of gotos and labels when it's syntax.
>>
>>Then you make the discovery that you can use casting and gotos for
>>nearly *all* your language constructs, meaning most features of C are
>>not needed
>
> Yes, C is a little too high-level for that job, but it's still the
> best portable assembly language we have. One can work around most of
> these issues as you point out, though.
(to all the people that might have tried C as backend):
How do you insert debug metadata on the HLL level into your binary in such
setup ? It seems to me your debuginfo will contain C linenumbers, typedata
etc. IOW, how do you debug in your HLL this way?
Return to the
comp.compilers page.
Search the
comp.compilers archives again.