Large code size?

Sam Lantinga slouken@devolution.com
Thu Mar 25 09:48:00 GMT 1999


> >>>>> Joe Buck <jbuck@Synopsys.COM> writes:

>  >> We built robotcom.so with the compiler flags:
>  >> 	g++ -O2 -funroll-loops -fno-exceptions -DLINUX_BETA -D_REENTRANT
>  >> and the linker flags:
>  >> 	cc -shared -nostartfiles -s -o robotcom.so ...

>  > Hmm.  Does the gnu.linkonce trick work for shared libraries?

> I would think so, but it certainly doesn't work if you don't use the GNU
> linker, and 'cc' isn't likely to.

On our system cc --> gcc
What is this gnu.linkonce trick?  Is it automagically used by gcc?


	-Sam Lantinga				(slouken@devolution.com)

Lead Programmer, Loki Entertainment Software
--
Author of Simple DirectMedia Layer -
	http://www.devolution.com/~slouken/SDL/
--


More information about the Gcc mailing list