4 ms·
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 he
by dietrichepp 11y ago
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.
- nabla9 11y agoIt'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.
- Roboprog 11y agoOr an RPG II to C translator/compiler :-) A job I had in the early 90s, maintaining and extending such...