Re:Macros on Steroids: How pure C can benefit from metaprogr...
by touisteur on Thursday July 22, 2021 @04:57PM
(#27924227)
I'm curious of your opinion about AdaCore CCG, an SPARK to C compiler, for targets that don't have an Ada compiler yet.
Re:Macros on Steroids: How pure C can benefit from metaprogr...
by WalterBright on Thursday July 22, 2021 @05:02PM
(#27924294)
I do not know enough about them to have a worthwhile opinion.
P.S. I also did metaprogramming in C by writing C programs to generate C code, such as converting an array of structs to multiple arrays, one for each field (for efficiency). This worked out fairly cleanly, but with D's ability to run functions at compile time, I was able to put this back into the main program.