alright im getting started on my C compiler project today.
i'm planning to write that in C itself, does anyone have a recommendation on what compiler/C version I should use to have a sane bootstrap?
0 Boosts
0 Likes
wicked witch of the unix
@navi@social.vlhl.dev
·
activity timestamp
26 min. ago
@valorzard c99 or so is probably the easiest for a direct bootstrapping (so not going through another c compiler that is also in c or c++)
@navi aw man i wanted to use c11 (or, god forbid, c32) lol.
ah well, c99 seems like the baseline these days
@valorzard it should be fine, imo; cproc and qbe are c99 and implement c17 and a lot of c23; gcc itself isn't that hard to bootstrap
stick to c99 if you want to avoid needing another step on top of the "barebones c compiler written in asm"
stick to c99 if you want to avoid needing another step on top of the "barebones c compiler written in asm"
@navi @valorzard Yeah, plus tcc seems to have okay support for c11/c17, and that's typically the compiler used once the bootstrap steps are at least at the first stages of a posix environment.