Damus
Laurent Bercot · 15w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hsu08m52 I kinda disagree with that. You could write a C compiler, down to the asm generation, ...
mid_kid profile picture
@nprofile1q... @Haelwenn /элвэн/ :triskell: There's no reason for a C compiler to not compile straight to machine code. Popular ones doing so is an implementation detail and a bit of unix heritage - now you have to define the instruction set in multiple places *and* a language to interface with the assembler.
I do agree it helps with debugging and make implementing asm() statements trivial, but I've seen commercial C compilers skip the assembler before (providing a disassembler for debugging instead).
1
Haelwenn /элвэн/ :triskell: · 15w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqceugqlutuyufp8r4drpnrp4s8hekvcp7kh9yujklr4pcsmzfwryqxq872c nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty tcc in fact skips the assembler, but sadly it also skips defining someth...