delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/30/19:57:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <99B82AA9708ED0119B55006097125A001E5FEF@ifk63.mach.uni-karlsruhe.de>
From: Heribert Dahms <heribert_dahms AT icon-gmbh DOT de>
To: "'Dan Oelke'" <Dan DOT Oelke AT oelke DOT com>,
"'cygwin AT sourceware DOT cygnus DOT com'"
<cygwin AT sourceware DOT cygnus DOT com>,
"'Raman Bakshi'" <raman_bakshi AT yahoo DOT com>
Subject: RE: Optimizing code with cygwin gcc??
Date: Sat, 31 Jul 1999 01:53:12 +0200
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1457.3)

Hi Dan,

cut&paste error: you trapped yourself 8-)

gcc -c obj1.c -O2
or
gcc -O2 -c obj1.c

Bye, Heribert (DAHMS AT ifk20 DOT mach DOT uni-karlsruhe DOT de)

> -----Original Message-----
> From:	Dan Oelke [SMTP:Dan DOT Oelke AT oelke DOT com]
> Sent:	Thursday, July 29, 1999 21:14
> To:	cygwin AT sourceware DOT cygnus DOT com; Raman Bakshi
> Subject:	Re: Optimizing code with cygwin gcc??
> 
> 
> [...]when i compile and link my code using
> >the -O1 or -O2 options i get get tons of error
> >messages during linking time ( gcc -o -O2 exe_name
> >obj1.o obj2.o).   [...]
> 
> To get rid of your error messages what you need to do is:
> 	gcc -o exe_name -O2 obj1.o obj2.o
> NOT
> 	gcc -o -O2 exe_name obj1.o obj2.o
> 
> But, that will not do any optimization, because that is 
> linking which won't do any real optimization. 
> What you need to do is change your compile line
> that creates the .o files to look like
> 	gcc -c -O2 obj1.c
> 
> Good luck!
> Dan
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019