On Fri, Apr 29, 2011 at 01:57:46PM +, Elnatan Reisner wrote:
> You could create function
> void comment(const char *s) {}
> and insert your comments by adding calls like
> comment("place your comment here");
And make a special printer to output it as a C comment.
--
Gabriel
Alexandros Tzannes cs.umd.edu> writes:
> I have written some passes in CIL and I want to be able to output some
> comments in the code produced by CIL.
I assume you've seen http://www.eecs.berkeley.edu/~necula/cil/cil011.html
where it suggests using attributes or pragmas:
CIL operates after p
Hi all,
I have written some passes in CIL and I want to be able to output some
comments in the code produced by CIL. If you're interested why, some of
the passes make decisions about transforming code blocks based on
heuristics and estimations (e.g. code-block X will take 20 cycles to
execute).