Re:T3X – a minimal procedural language
by sigjuice on Friday May 05, 2017 @01:38PM
(#14275254)
Looks cool, but what is FreeBSD-specific about it? Shouldn't a compiler just be reading and writing files?
[ Parent
| on HN ]
It generates FreeBSD executables directly.
>The compiler translates from T3X9 directly to FreeBSD-386-ELF. It does not require any assembler, linker, or other additional programs. I suspect that it can be ported to other 32-bit ELF Unixes in about half an hour.
WebAssembly port would be fun.
Compiled executables are, by their very natures, usually specific to operating systems. This minimal compiler outputs one specific executable file format, hardwiring a specific platform and instruction set architecture in that executable file format's header.