SectorC: A C Compiler in 512 bytes
xorvoid.com - 136 poäng - 23 kommentarer - 18406 sekunder sedan
Kommentarer (9)
- mati365 - 6612 sekunder sedanOh, it looks like my X86-16 boot sector C compiler that I made recently [1]. Writing boot sector games has a nostalgic magic to it, when programming was actually fun and showed off your skills. It's a shame that the AI era has terribly devalued these projects.
- xorvoid - 9240 sekunder sedanI may be the author.. enjoy! It was an absolute blast making this!
- mojuba - 6612 sekunder sedanCompare that to the C compiler in 100,000 lines written by Claude in two weeks for $20,000 (I think was posted on HN just yesterday)
- sanufar - 9455 sekunder sedanThe way hashing is used for tokens and for making a pseudo symbol table is such an elegant idea.
- riedel - 9954 sekunder sedanBeautiful, but make sure to quickly add 2023 to the title.
Discussed at the time: https://news.ycombinator.com/item?id=36064971
- gonzus - 3979 sekunder sedanLacking support for structs, I think this is too minimalistic to be called "a C compiler".
- NooneAtAll3 - 7150 sekunder sedan> I wrote a fairly straight-forward and minimalist lexer and it took >150 lines of C code
was it supposed to be "<150"?
- SeanSullivan86 - 5036 sekunder sedanWhy is it called a C Compiler if it's a subset of C?
- kayo_20211030 - 2666 sekunder sedanNice. Very K&R-ish. Not a bad thing.
Nördnytt! 🤓