delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/11/12:16:42

From: Paul Shirley <Paul AT no DOT spam DOT please>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Simple == Big
Date: Sat, 11 Oct 1997 13:20:43 +0100
Organization: wot? me?
Lines: 19
Distribution: world
Message-ID: <zACmxDAb82P0Ew2u@foobar.co.uk>
References: <19971010014900 DOT VAA05748 AT ladder02 DOT news DOT aol DOT com>
<61lbqi$d1b$2 AT news DOT ox DOT ac DOT uk>
Reply-To: Paul Shirley <Paul AT chocolat DOT obvious DOT fake DOT foobar DOT co DOT uk>
NNTP-Posting-Host: chocolat.foobar.co.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <61lbqi$d1b$2 AT news DOT ox DOT ac DOT uk>, George Foot
<mert0407 AT sable DOT ox DOT ac DOT uk> writes
>Myknees (myknees AT aol DOT com) wrote:
>: Now here's the kicker.  I also added the -O3 option, and the resulting
>: executable was still the same size.  Does this mean that all simple
>: programs compiled with djgpp will always be inordinately large?
>
>Yup. Not that large though... A very simple program which just prints a
>string on the screen and then quits can be as small as 30k IIRC. The `-s'
>option should have reduced your file size a bit; try running `strip' on the
>executable, which has the same effect.

As better idea of the size you can expect the Duke Nukem PSX game
compiler compiles ~2000 lines to 64K of stripped executable.

32K+16K/1000 lines seems reasonable to me ;)

---
Paul Shirley: my email address is 'obvious'ly anti-spammed

- Raw text -


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