Mail Archives: djgpp/1994/08/04/21:12:43
> I have had about five letters all telling me the same thing - coff2exe
> padds the program so it is on a 1k boundary to make it easier to load
> into memory. I'm not sure I believe loading x number of 1k segments and
> then a few trailing bytes is that hard to do, but I guess it makes sense,
> since my magic number was 27 * 1024.
Actually, it pads it to a 512 byte boundary - the disk sector size.
The reason why is because go32 *pages* the executable, which means
it's constantly reading *random* blocks. Aligning these reads saved
10% of the total run time for small programs.
- Raw text -