www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMC, GCC-XML and .h->.d

reply "Hans W. Uhlig" <huhlig clickconsulting.com> writes:
I was reviewing the code for bcd.gen and was curious, is there a way to 
integrate its functionality into dmc for hybrid projects. Since D is 
meant to integrate C code somewhat natively via linking and the DMD/DMC 
suites are interlinked. Would it be possible to build a similar 
generator into the DMC frontend to create the neccessary D header code 
based on the symbols and structure that the DMC frontend engine produces?
Mar 25 2008
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Hans W. Uhlig" <huhlig clickconsulting.com> wrote in message 
news:fsbn52$21oq$1 digitalmars.com...
I was reviewing the code for bcd.gen and was curious, is there a way to 
integrate its functionality into dmc for hybrid projects. Since D is meant 
to integrate C code somewhat natively via linking and the DMD/DMC suites 
are interlinked. Would it be possible to build a similar generator into the 
DMC frontend to create the neccessary D header code based on the symbols 
and structure that the DMC frontend engine produces?

That's pretty much precisely what htod (available on the DM site) is. It's DMC with a backend that outputs .d files instead of object files. Except that it isn't as complete as bcd.gen.
Mar 25 2008