Fuer was ist denn das -O2 gut? Ich weis irgendwas mit structs aber wuerde gerne genaueres wissen
Die Manpage vom gcc meint dazu:
Zitat-O2 Optimize even more. GCC performs nearly all supported optimizations that do not involve a space-speed tradeoff.
The compiler does not perform loop unrolling or function inlining when you specify -O2. As compared to -O, this
option increases both compilation time and the performance of the generated code.
[...]