[indiana-discuss] SUNWxorg-mesa binary size growth in nv_107: gcc vs. Sun cc

Alan Coopersmith alan.coopersmith at sun.com
Fri Feb 20 17:24:00 PST 2009


I did finally do a build with the new Mesa version switched back to gcc,
and it does seem gcc builds noticably smaller binaries than Sun Studio,
so we may have to revert to the GNU compilers for Mesa in order to fit
on the LiveCD, if we can't find a better fix soon:

Sun Studio 12 cc:
 5.6M   /usr/X11/lib/modules/dri/i915_dri.so
 5.9M   /usr/X11/lib/modules/dri/i965_dri.so
 5.4M   /usr/X11/lib/modules/dri/r200_dri.so
 5.5M   /usr/X11/lib/modules/dri/r300_dri.so
 5.3M   /usr/X11/lib/modules/dri/radeon_dri.so
 6.3M   /usr/X11/lib/modules/dri/amd64/i915_dri.so
 6.7M   /usr/X11/lib/modules/dri/amd64/i965_dri.so
 6.1M   /usr/X11/lib/modules/dri/amd64/r200_dri.so
 6.2M   /usr/X11/lib/modules/dri/amd64/r300_dri.so
 6.0M   /usr/X11/lib/modules/dri/amd64/radeon_dri.so
 5.7M   /usr/X11/lib/modules/dri/amd64/swrast_dri.so
  37M   /usr/X11/lib/modules/dri/amd64
 5.0M   /usr/X11/lib/modules/dri/swrast_dri.so
  70M   /usr/X11/lib/modules/dri

/usr/sfw/bin/gcc:
 3.0M   usr/X11/lib/modules/dri/i915_dri.so
 3.2M   usr/X11/lib/modules/dri/i965_dri.so
 2.8M   usr/X11/lib/modules/dri/r200_dri.so
 2.9M   usr/X11/lib/modules/dri/r300_dri.so
 2.8M   usr/X11/lib/modules/dri/radeon_dri.so
 2.5M   usr/X11/lib/modules/dri/swrast_dri.so
 3.3M   usr/X11/lib/modules/dri/amd64/i915_dri.so
 3.4M   usr/X11/lib/modules/dri/amd64/i965_dri.so
 3.2M   usr/X11/lib/modules/dri/amd64/r200_dri.so
 3.2M   usr/X11/lib/modules/dri/amd64/r300_dri.so
 3.1M   usr/X11/lib/modules/dri/amd64/radeon_dri.so
 2.8M   usr/X11/lib/modules/dri/amd64/swrast_dri.so
  19M   usr/X11/lib/modules/dri/amd64
  36M   usr/X11/lib/modules/dri

	-alan-

Alan Coopersmith wrote a while ago:
> And to answer the inevitable questions from Dave about LiveCD size impact,
> the uncompressed SVR4 package size changed due to a number of factors,
> including removing code that's now in SUNWpciaccess & SUNWpixman or otherwise
> not needed, merging the docs into the code packages (and thus removing the
> docs second copy of the license notices), new code added, etc.
> 
> The uncompressed package sizes in kb are:
> 
> 				b106	b107
> SUNWxorg-doc			 1601	 --
> SUNWxorg-graphics-ddx		10159	10642
> SUNWxorg-mesa			41993	78099
> SUNWxorg-server			39198	22015
> 			total	92951  110756
> 
> I hadn't noticed the SUNWxorg-mesa growth until making this list though,
> it appears the dri modules for the various models of Intel & ATI graphics
> almost doubled in size - not sure if that's from the Mesa 7.0.4 -> 7.2 move
> or from changing the compiler used to build Mesa from gcc to Studio 12.
> Other than that it seems we made progress in the size battle.
> 
> 	-Alan Coopersmith-           alan.coopersmith at sun.com
> 	 Sun Microsystems, Inc. - X Window System Engineering
> 
> _______________________________________________
> xwin-discuss mailing list
> xwin-discuss at opensolaris.org

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering




More information about the indiana-discuss mailing list