www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/06/14:42:11

Date: Fri, 6 Jan 95 13:58:43 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Uninitialized memory [was: Ramdrive]

> I thought that if an object was uninitialized that it got mapped to an
> area which contains only uninitialized data, and therefore doesn't
> need to have an image in the executable file.  I know there was a
> discussion whose conclusion was to the effect that the executable of a
> program which declares a 1MB matrix doesn't have to be over 1MB.

File sections in COFF are rounded to page size (4K); that causes the
extra.  No file will have more than 8K of this rounding.  The latest
binutils patches I sent in round to 512 bytes instead (I think); the
rounding is only for disk performance.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019