Large code size?

H.J. Lu hjl@lucon.org
Wed Mar 31 23:46:00 GMT 1999


> 
> > 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.
> 

Your setup doesn't sound right. You should not have seen the MB size
increase. If you want, I can compile your stuff on my machine to see
what I get.

-- 
H.J. Lu (hjl@gnu.org)



More information about the Gcc mailing list