delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/28/19:07:21

Date: Sun, 28 Sep 1997 15:03:35 -0700 (PDT)
Message-Id: <199709282203.PAA14906@adit.ap.net>
Mime-Version: 1.0
To: ckern AT junkmailnetnitco DOT net, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Newbie question

At 02:24  9/27/1997 GMT, Chris Kern wrote:
>
>Sorry if this is an FAQ, it's probably just a problem with setting
>options.
>
>I typed this program into RHIDE:
>
>main()
>{
>  int num;
>  num = 2;
>  printf("Value=%d, Address=%d",num,&num);
>}
>
>The compiled .exe file was 80K.  Why is this such a large size?  The
>object file was very small, and the equivalent Pascal program was only
>2.5K.
This is indeed an FAQ (section 8.15). DJGPP does generate very large
executables; this is known. You can use `strip' to remove debugging info and
make it smaller, or DJP to compress it and make it smaller yet. The FAQ has
some additional ideas.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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