3 ms·
Compilers. Compilers for everything. You can hype your favorite systems language all you want, but if there is no compiler, it wont compile. >OS and hardware
by nabla9 11y ago
Compilers. Compilers for everything.
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.
- dietrichepp 11y agoX-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...
- pjmlp 11y agoOf course, but that is an issue of implementation availability not language quality. I remember the days when using C meant getting an account to the university (or work) UNIX system.