3 ms·
Looks cool, but what is FreeBSD-specific about it? Shouldn't a compiler just be reading and writing files?
by sigjuice 9y ago
Looks cool, but what is FreeBSD-specific about it? Shouldn't a compiler just be reading and writing files?
- JdeBP 9y agoCompiled 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.
- sigjuice 9y agoYes, I know that about executables, but I guess compiler-related subtleties are lost on me. I will clearly benefit from reading the book I just bought.
- oddity 9y agoIt 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.
- sitkack 9y agoWebAssembly port would be fun.