Re:A critique of "How to C in 2016"
by dietrichepp on Friday January 15, 2016 @06:31AM
(#10908581)
X-to-C compiler isn't as nice as it could be, because you're writing code for some weird chip and need to twiddle some bits for IO using a macro defined in a header somewhere, and that doesn't play nicely with your pet X-to-C compiler.
Not an ideal situation, for sure, but a real one.
It's possible for translator understand headers and macros and generate bindings for them. Even for function macros. For example, GNAT has macro binding although it's not
complete.
Btw. There is nothing "pet" in X to C translators. You pay good money for a good Ada to C compiler.
Or an RPG II to C translator/compiler :-)
A job I had in the early 90s, maintaining and extending such...
You can hype your favorite systems language all you want, but if there is no compiler, it wont compile.
>OS and hardware vendors decided to only support C compilers.
If you want your favorite language X to work everywhere C does. Just make X-to-C compiler.