LINUX.ORG.RU

История изменений

Исправление KennyMinigun, (текущая версия) :

-O2 или -O0 - вообще не играет никакой роли.

Зачем оно тогда надо?

Погуглил, таки играет.

Without any optimization option, the compiler's goal is to reduce the cost of compilation and to make debugging produce the expected results. Statements are independent: if you stop the program with a breakpoint between statements, you can then assign a new value to any variable or change the program counter to any other statement in the subprogram and get exactly the results you would expect from the source code.

Исправление KennyMinigun, :

-O2 или -O0 - вообще не играет никакой роли.

Зачем оно тогда надо?

Погуглил, Таки играет.

Without any optimization option, the compiler's goal is to reduce the cost of compilation and to make debugging produce the expected results. Statements are independent: if you stop the program with a breakpoint between statements, you can then assign a new value to any variable or change the program counter to any other statement in the subprogram and get exactly the results you would expect from the source code.

Исходная версия KennyMinigun, :

-O2 или -O0 - вообще не играет никакой роли.

Зачем оно тогда надо?