From: | Walter Banks <walter@bytecraft.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 29 Aug 2016 21:21:46 -0400 |
Organization: | Aioe.org NNTP Server |
References: | 16-08-007 16-08-008 16-08-009 16-08-011 |
Injection-Info: | miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="16182"; mail-complaints-to="abuse@iecc.com" |
Keywords: | translator |
Posted-Date: | 30 Aug 2016 09:58:27 EDT |
On 2016-08-29 1:52 PM, BartC wrote:
> I've played with source-to-source translators, and never managed to
> deal with comments properly and in the end gave up. ...
How we handled the comments on the asm to asm translation was put the
whole sourceline into in our case a C statement // comment with enough
parsing information to tie it as well to the generated code. A filter
(In our case a compiler pragma) reprocessed the listing line. It could
have been done with a small post processing program quite easily.
It proved quite workable.
w..
Return to the
comp.compilers page.
Search the
comp.compilers archives again.