www.digitalmars.com         C & C++   DMDScript  

c++.beta - optimization flag -o -> -O

reply Nicky <Nicky_member pathlink.com> writes:
I suggest change the optimization flag from the lowercase 'o' to uppercase 'O'
so there is no conflict with -o option which set the name of the output file. It
could be like this:

-O+[all | space | speed | time ] and other flags

This is not necessary, but it would be nice to have it.
-O0 or -O- -> disable optimization
-O1 -> optimize for size
-O2 -> optimize for speed
-O3 -> all optimization


So,
dmc test.cpp -o test.abc
will compile test.cpp to test.abc and not compile both test.cpp and test.abc
with optimization

By the way, I have saw this on the documentation for dmc.exe switches:
-o SPP only: send result to stdout

what is SPP?

Regards,
Nicky.
Jan 30 2005
parent "Walter" <newshound digitalmars.com> writes:
"Nicky" <Nicky_member pathlink.com> wrote in message
news:ctkh6u$14ee$1 digitaldaemon.com...
 I suggest change the optimization flag from the lowercase 'o' to uppercase
'O'
 so there is no conflict with -o option which set the name of the output
file. It
 could be like this:

 -O+[all | space | speed | time ] and other flags

 This is not necessary, but it would be nice to have it.
 -O0 or -O- -> disable optimization
 -O1 -> optimize for size
 -O2 -> optimize for speed
 -O3 -> all optimization


 So,
 dmc test.cpp -o test.abc
 will compile test.cpp to test.abc and not compile both test.cpp and
test.abc
 with optimization

 By the way, I have saw this on the documentation for dmc.exe switches:
 -o SPP only: send result to stdout

 what is SPP?
SPP is the standalone preprocessor.
Jan 31 2005