[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Can XSL be used for code generation in Compilers?
NO. Firstly, you can not represent the intermediary code of a 'any' compiler as a XML document, but you can write a compiler that uses XML to represent the intermediary code. If the XML structure is VERY carefully designed, it would probably be possible to write XSL stylesheets to generate a CPU/Plattform specific result tree, that a _specialized_ formatter would output to either Assembler text or machine code. But to me it sounds like crossing the river to get water... Niclas S Manimaran wrote: > Hi, > If we can represent the intermediate code during a compiler pass > as a XML document, can then XSL be used to generate assembly code? i.e Is > it possible to write a XSL stylesheet for each machine architecture > (Pentium, SPARC etc.,) so that the assembly code for each of this > architecture is generated as the output when the intermediate code > converted to XML document is given as input to a XSL engine ? > > Thanks, > -S.Manimaran, > > ------------------------------------------------------------------------------- > URL::http://www2.csa.iisc.ernet.in/~mani/ > Indian Internet Chess Server IICS::telnet 144.16.67.53 5000 > Join frenchlist by sending a mail to french@xxxxxxxxxxxxxxxxx > f16 Fingerprint16 = EC FF 4D 6C 3A 09 84 30 AA B5 F0 A2 38 A0 4C A4 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|