Hi Vladimir, >Do you know a way to turn on optimization flags step by step from -O0 till -O2? No, not possible. Not all optimizations are controlled by specific flags. Some are controlled by -O setting. And -O0 disables all optimizations, even those specified with a specific flag. Sincerely, --Eljay