delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/06/08:03:05

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: Re: Size of smallest program
6 Dec 1996 08:03:05 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199612061520.CAA16680.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
Original-To: gunther DOT ebert AT ixos-leipzig DOT de (Gunther Ebert)
Original-Cc: gnu-win32 AT cygnus DOT com (gnu-win32)
In-Reply-To: <32A6858A.E41@ixos-leipzig.de> from "Gunther Ebert" at Dec 5, 96 09:19:22 am
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Gunther Ebert wrote:
> 
> The section sizes are
> .text   1024
> .bss      24 (!)
> .data    512
> .idata   512
> 
> The size of headers is 1024.
> 
> (I don't understand that, adding all sizes I get 3096, but the
> executable file
> size is 3072, hello Cygnus, is there something wrong?)

The .bss section is uninitialized (or rather zero-initialized) data,
hence the executable file just stores its size, not its contents.

-- 
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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