VC++ 6.0 larger exe files explained

Greg Ewing greg.ewing at compaq.com
Wed Jul 21 23:53:11 EDT 1999


"Stidolph, David" wrote:
> 
> This might (stress this is a pure guess) have something to do with virtual
> memory and its size being 4k pages.

That sounds like a pretty good guess. If Windows VM is anything
like Unix, it'll want to keep the code & data in separate pages
so it can share the code between processes.

In the case of extremely small programs (i.e. ones whose code
& init data together fit in one page), it might be better to
forget about trying to share the code and just load a separate
copy into each process.

Mind you, Microsoft programmers have probably long since
forgotten that there's any such thing as an executable smaller
than about 5MB, so it's understandable that they wouldn't
have thought of this...

Greg




More information about the Python-list mailing list