This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Large code size?


> H . J . Lu <hjl@lucon.org> 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 ...

> Is not -funroll-loops by definition going to make things larger?

Yup, but the speedup is worth the small size increase.
It was the Megabytes of size increase that we were worried about.

	-Sam Lantinga				(slouken@devolution.com)

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]