xiebopublic
Tue Sep 26 20:37:44 CDT 2006
I've done it for both win32 and win64 (/O1 /Os), it works but the
result win64 .dll is still too big.
Best Regards,
Xie, Bo
Mark Randall wrote:
> Select optimize for size in the project configuration; but really - Win64 is
> a completely different system from Win32. How can you expect them to be
> equal?
>
> --
> - Mark Randall
>
http://www.temporal-solutions.co.uk
>
http://www.awportals.com
>
> <xiebopublic@gmail.com> wrote in message
> news:1159282508.395489.273480@h48g2000cwc.googlegroups.com...
> >I really care about it. My program has a hard footprint limitation
> > (e.g., 300 KB) and my win32 version can meet the footprint limitation,
> > but win64 version can not meet it. Then I must reduce win64 executable
> > footprint. Is there any trick to reduce the win64 footprint limitation?
> >
> > Thanks!
> >
> > Best Regards,
> > Xie, Bo
> >
> > Bruno wrote:
> >> > I am using Visual Studio 2005 Professional Edition to build a .dll for
> >> > Win32 Release, it is 433 KB, for Win64(x86_64) Release, it is 581 KB
> >> > with the exactly same configuration (e.g., /Os). Why? How to reduce the
> >> > Win64 .dll footprint? Thanks!
> >>
> >> 64 bit cpu's have different binary code than 32 bit cpu's. pointers are
> >> 64
> >> bit wide, different instructions, addresses are 64 bit,...
> >> I think this is normal.
> >> given what I know about Itanium, I suspect that Itanium 64 bit binaries
> >> would be even bigger still.
> >>
> >> Remember the golden rule of engineering: if it ain't broken, don't fix
> >> it.
> >>
> >> the only thing you could do is to optimize for size instead of speed for
> >> 64
> >> bit builds.
> >> But really, the difference is not that big that you should worry about
> >> it.
> >>
> >> --
> >> Kind regards,
> >> Bruno.
> >> bruno_nos_pam_van_dooren@hotmail.com
> >> Remove only "_nos_pam"
> >