Clang builds a working 2.6.36 Kernel
Clang builds a working 2.6.36 Kernel
Posted Oct 26, 2010 14:37 UTC (Tue) by juliank (guest, #45896)In reply to: Clang builds a working 2.6.36 Kernel by tzafrir
Parent article: Clang builds a working 2.6.36 Kernel
> It also becomes way faster in gcc (4.4.5 here) once
> you remove "__attribute__((noinline))". This looks
> like a simpler explanation for the simpler code you posted there.
> you remove "__attribute__((noinline))". This looks
> like a simpler explanation for the simpler code you posted there.
Then gcc calculates the result of f() at compile-time and just has a constant integer in the assembler code. Clang does not appear to do this (there's callq f in clang's assembly)
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
