This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: Compiling with "-O2 -s" and crashing.
- To: Charlie Tran <coptran@hotmail.com>
- Subject: Re: Compiling with "-O2 -s" and crashing.
- From: Anders Norlander <anorland@hem2.passagen.se>
- Date: Sat, 03 Apr 1999 11:14:55 +0200
- CC: cygwin@sourceware.cygnus.com, gntran@unm.edu
- References: <19990403010008.84217.qmail@hotmail.com>
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