Clang builds a working 2.6.36 Kernel
Clang builds a working 2.6.36 Kernel
Posted Oct 26, 2010 13:04 UTC (Tue) by juliank (guest, #45896)In reply to: Clang builds a working 2.6.36 Kernel by juliank
Parent article: Clang builds a working 2.6.36 Kernel
It might be that clang is able to optimize (-O2)
for (*va = 0; a < b; a++)
*va += a;
to
*va = (1 + b)*(b/2) - b
- as per Gauss: 1+2+...+N=(1 + N)*(N/2)
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.
