Big problem with Small programs

kris foo at bar.com
Tue Jan 23 15:36:59 PST 2007


Walter Bright wrote:
> Sean Kelly wrote:
> 
>> As you can see, simply putting the Win32 object files into a library 
>> prior to linking reduced the application size by 51,100 bytes, but 
>> separate compilation had the same (bad) result as compiling all 
>> modules on one line.
> 
> 
> I suggest linking with /MAP, which will generate a .map file listing all 
> the modules linked in, and all the global symbols linked in. It's a lot 
> easier to see what's happening with that than guessing based on the file 
> size.


Done that, Walter.

The difference is entirey Win32 struct inits, consts and so on. Remove 
the int consts, and you still have the struct inits ... almost enough to 
hand out at Christmas :)

What shall we do next?



More information about the Digitalmars-d mailing list