Compiling with "-O2 -s" and crashing.

Anders Norlander anorland@hem2.passagen.se
Fri Apr 30 18:32:00 GMT 1999


Charlie Tran wrote:
> 
>        I try to compile a C++ program using the flag:
> "-O2 -s" to make the executable file smaller, but the file will
> crash if I run it (while a normal compiled executable file works
> OK).
> 
>        Any idea for the use of "-O2 -s"?
>        Thanks for reading this.

Try using only -O2 and see if it works. If it does you can
try stripping the executable afterwards. Are you by any chance
using w95 or w98?

Regards,
Anders

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com




More information about the Cygwin mailing list