RE: "gcc -pipe" and ld

2005-09-19 Thread Dave Korn
Original Message >From: Andreas Schwab >Sent: 19 September 2005 20:20 > Erik Leunissen <[EMAIL PROTECTED]> writes: > >> gcc -pipe -o myLib.so myLib.c -lm >> >> How does the linker get the object code for myLib? >> a. from a temporary file, saved by the compiler? >> b. on stdin from a

Re: "gcc -pipe" and ld

2005-09-19 Thread Andreas Schwab
Erik Leunissen <[EMAIL PROTECTED]> writes: > gcc -pipe -o myLib.so myLib.c -lm > > How does the linker get the object code for myLib? > a. from a temporary file, saved by the compiler? > b. on stdin from a pipe that connects to the compilers stdout? > c. ??? It's case a. The -pipe option is

"gcc -pipe" and ld

2005-09-19 Thread Erik Leunissen
L.S. A simple question: When I build a shared object (or executable) by doing: gcc -pipe -o myLib.so myLib.c -lm How does the linker get the object code for myLib? a. from a temporary file, saved by the compiler? b. on stdin from a pipe that connects to the compilers stdout? c. ??? The re