3 ms·
Creating a C compiler is basically the assignment on plenty of CS degrees around the globe. Plenty people do it every year, naturally nothing to compare to GCC
by pjmlp 4mo ago
Creating a C compiler is basically the assignment on plenty of CS degrees around the globe.
Plenty people do it every year, naturally nothing to compare to GCC/clang.
- xydone 4mo agoC compiler != C replacement
- pjmlp 4mo agoC23 is a replacement for C17,...
- lifthrasiir 4mo agoCreating a part of C compiler, most frequently a working optimization pass, is a regular assignment. The entirety of C compiler is too large to give it as a student assignment.
- pjmlp 4mo agoDepends which ISO C version, C89 is quite doable, and clever students might dust off a copy of "A Retargetable C Compiler: Design and Implementation" or "Compiler Design in C" as starting point.
- lifthrasiir 4mo agoClever students can do anything without steering anyway ;-) Typical, I mean median, students would rather struggle to learn C.
- pjmlp 4mo agoBack on my day, high school students would learn C on introduction to programming classes, while 10 year olds were able to write Z80 or 6502 Assembly and some of them would go on to create the games industry we have today. I guess education system went downhill since then, which I guess it is kind of true, given the poliferation of header only libraries, as if C was a scripting language.