Skip to contentSkip to conversation

do u get better performance from optimizing the code

DISCUSSION Kingsley Foreman 2 participants 2 messages May 15, 2002

lore
Share & tools
lore
#0 lore raw

just out of curiosity will the kernel perform better if you change the optimizations using C++ eg use -O9 or something during compile

Kingsley

#1 lore raw
Quoted 2 lines · Kingsley Foreman

just out of curiosity will the kernel perform better if you change the optimizations using C++ eg use -O9 or something during compile

The kernel is written in C, so don't use a C++ compiler. GCC has four levels of optimization:
0 = nothing
1 = -O, simple things
2 = some more
3 = function inlining etc.

Anyting >3 is treated as 3.

Signature · 2 lines
Måns Rullgård
[email protected]