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). These estimates are not very accurate and it would be easier if they were embedded in the code rather than printed separately via a debug flag.
I am using cil 1.3.6 and it would be hard for me to upgrade as I have changed the parsed language and some of the internal representation of CIL (e.g. to not pull all variable declarations at the top of each function). I found that there is a 'comment = location * string' type but I didn't see it used anywhere. I also found the 'GText of string' of type global but again being able to insert comments inside the code would be much more useful. I am considering adding a comment field to the 'block' type but if you know of something already available it would probably be better than such an arbitrary hack. Thank you, Alex ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users