User forums > General (but related to Code::Blocks)

Quick&dirty C++ language conformance tests

<< < (4/6) > >>

Michael:
Hmmm, the last two of the list return 1, but the first (throwing destructor) returns 0. Visual Studio C++ .NET 2003 and gcc version 3.4.4 (mingw special) gives the same results and behaves (for what I could see) in the same way.

Michael

grv575:

--- Quote from: Ceniza on December 17, 2005, 04:45:59 pm ----O2 to the linker? 18%? I just tried that and the filesize is still the same.

-Wl,-O2

Am I missing something?

--- End quote ---

-Os optimizes size
and it doesn't need to be passed directly to the linker.
Still optimizing for speed is more important (-O2, -O3)

thomas:

--- Quote from: grv575 on December 18, 2005, 04:32:42 am ----Os optimizes size
and it doesn't need to be passed directly to the linker.
--- End quote ---
I can only repeat: read the manual.


--- Quote ----O level
If  level  is a numeric values greater than zero ld optimizes the output.  This might take significantly longer and therefore
probably should only be enabled for the final binary.
--- End quote ---

grv575:

--- Code: ---man gcc says:

-O1 Optimize.
-O2 Optimize even more...performs nearly all supported optimizations that do not involve a space-speed tradeoff.
-O3 Optimize yet more.
-O0 Do not optimize.  This is the default.
-Os Optimize for size.  -Os enables all -O2 optimizations that do not typically increase code size.   It also performs further optimizations designed to reduce code size.

--- End code ---

thomas:
Try man ld  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version