help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -O option gives different running time!


From: Armel Asselin
Subject: Re: -O option gives different running time!
Date: Tue, 13 Jun 2006 14:01:18 +0200

> I am really new at C++ so can't figure it out why is it so different.
> Any idea?
-O stands for Optimize :) (mostly for __speed__ and a bit for size)
-O2 may still improve performance as well as various options 
(interprocedural optimizations, stack frame, disabling exceptions...)

the reason of the presence of such a flag is that the optimized program is 
generally less 'debug-able' because the instructions that you type in your 
C++ program are compiled with less fidelity but more performance in mind 
(still 'doing the same thing')

HIH
Armel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]