I have downloaded and compiled tutorial 1 and my filesize is not 1,536 bytes, instead, is 2048 bytes (exactly 2KB). What is causing the filesize difference?

I have progressed to tutorial 3 and my filesize is 2560 bytes (exactly 2.5KB). Again, it appears to synchronise to every 0.5KB ... any reasons why this is happening?

I am using ml.exe, link.exe and nmake.exe from VS 2005.
Posted on 2006-12-17 23:40:50 by tornado
Every linker aligns sections within PEs (EXEs, DLLs, etc.) to some default size. VS defaults to initial 2KB with 0.5KB increase. You can change it if you wish. Be warned, though, that PEs with small section alignments fail to run under older Windowses.
Posted on 2006-12-18 04:51:11 by ti_mo_n