Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But why would the kernel depend on gcc? Are there so many gcc-isms in there that would be hard to replicate on other compilers?


The biggest one is (was?) the use of GNU variable length arrays. The GNU extension has different syntax than C99's variable length arrays. There are also instances of __attributes__ on platform specific code.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: