News for hackers. Stuff that matters.
Re:Self hosted C – breakdown by andrewchambers on Friday December 04, 2015 @07:12AM (#10675857)
libfirm doesn't really classify as small to me, it is currently 132,638 lines of code. The cparser alone is 11k lines of code (5 times the size of my c parser).
Re:Self hosted C – breakdown by david-given on Friday December 04, 2015 @09:14AM (#10676388)
That's true. I was rather thinking of it in comparison to LLVM and gcc, which are both space-distorting behemoths. (The catchphrase I've seen is that you can compile libfirm in less time than it takes to run the gcc configure script!)
Re:Self hosted C – breakdown by nwmcsween on Friday December 04, 2015 @01:31PM (#10678097)
Does your cparser cover the entire c spec?
Re:Self hosted C – breakdown by andrewchambers on Friday December 04, 2015 @03:55PM (#10679075)
Not currently, but it covers probably more than 80 percent. Part of the problem is support gcc extensions which take some more work.
Re:Self hosted C – breakdown by userbinator on Friday December 04, 2015 @09:09PM (#10680486)
The GCC extensions are just that - they're not part of the standard. You can claim 100% standards conformance without implementing a single one of them.

That said, in practice a large amount of C code out there is not pure standard C so if you want to be able to compile something "interesting" like e.g. a Linux kernel you'll need to implement some.