GCC unplugged
Posted Nov 20, 2007 15:07 UTC (Tue) by
dcoutts (guest, #5387)
In reply to:
GCC unplugged by Nelson
Parent article:
GCC unplugged
What are some meaningful tasks people are doing with GCC-XML?
FFI tools for other high level languages. For example c2hs is a tool that reads .h files and generates Haskell code that imports the foreign C functions at the correct type. This guarantees cross-language type safety which is a pretty big deal.
At the moment c2hs has to use it's own hand-written C parser that understands all the GNU C extensions. This was not easy to make and it's not easy to maintain. Having a proper intermediate format generated by gcc would allow us to parse GNU C code easily and providing additional things like correct calculation of sizes of C types etc.
(
Log in to post comments)