This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Where are Reg* implemented?
- To: Ku Wei <weiku at solid dot ssd dot ornl dot gov>
- Subject: Re: Where are Reg* implemented?
- From: Jason Zions <jazz at softway dot com>
- Date: Fri, 01 Aug 1997 18:07:51 -0600
- CC: gnu-win32 at cygnus dot com, Justin Hopkins <hop at elwood dot pionet dot net>
- Organization: Softway Systems Inc.
- References: <Pine.A32.3.90.970801111027.17348A-100000@solid.ssd.ornl.gov>
- Reply-To: jazz at softway dot com
> Good point Jason about the ld man page. However, we are discuessing gcc
> or g++, not ld.
A difference that makes no difference; see below.
> It is clear that we need to put the main() entry ( in one of the .c or
> .cxx files) as the first of the source file list ( including .o and .c).
> However, the libraries are not 'source files' to g++. Instead, they are
> assigned as 'options' by '-l'. Therefore, it is really the compiler's
> responsibility to add these options to correct position in parameter list
> passed to 'ld' later.
And how on earth is gcc supposed to guess at this? There are times when
what *must* be passed to the loader is this:
file1.o file2.o -lmylib file3.o file4.0 -lotherlib
If gcc can't preserve this ordering, it's fundamentally broken.
Jason
P.S. I'd address you informally, as you did me, but I admit to being
stumped as to whether I should call you Ku, Wei, or both (and in which
order - I've seen your address come with your name in both orders...
:-).
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".