www.delorie.com/archives/browse.cgi | search |
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: | <199907291413410790.1E09EF81@bemidji> |
In-Reply-To: | <19990729184831.7113.rocketmail@web122.yahoomail.com> |
References: | <19990729184831 DOT 7113 DOT rocketmail AT web122 DOT yahoomail DOT com> |
X-Mailer: | Calypso Version 3.00.00.13 (1) |
Date: | Thu, 29 Jul 1999 14:13:41 -0500 |
From: | "Dan Oelke" <Dan DOT Oelke AT oelke DOT com> |
To: | cygwin AT sourceware DOT cygnus DOT com, "Raman Bakshi" <raman_bakshi AT yahoo DOT com> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |