3 ms·
If I write an assembler in C, I could use it to write object files with fancy machine code that the C compiler would never choose. Same with HotSpot, it’s not l
by erik_seaberg 5y ago
If I write an assembler in C, I could use it to write object files with fancy machine code that the C compiler would never choose. Same with HotSpot, it’s not limited by the code generator it was bootstrapped from.
- silisili 5y agoBut you see, you could use asm to then write a C that generates fancy machine code.
- erik_seaberg 5y ago“Does my C compiler generate better code than HotSpot?” is a different question than “could I conceivably write a better code generator from scratch, in any language?”