www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/31/21:35:45

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why does gcc make such big binaries?
Date: Wed, 28 May 1997 16:29:15 -0400
Organization: Communications Accesibles Montreal
Lines: 21
Message-ID: <338C959B.7422@cam.org>
References: <Pine DOT OSF DOT 3 DOT 91 DOT 970518132348 DOT 61A-100000 AT hermes DOT otago DOT ac DOT nz> <5ln25g$2p4 AT news DOT ox DOT ac DOT uk> <5m8qck$avt AT news DOT asu DOT edu> <5m8tep$3j1 AT news DOT ox DOT ac DOT uk>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynppp-98.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

George Foot wrote:
> 
> leereyno AT imap2 DOT asu DOT edu wrote:
> 
> : GCC under linux makes tiny code.  My mandelbrot program is about 13k
> : long.  The Dos version is over 100k.
> 
> What follows is AFAIK; I don't program Linux, so don't take it as gospel.
> 
> Linux is already in protected mode, so it doesn't need to switch. Also,
> the shell in Linux does most of what the stub does anyway. So in Linux
> this additional code isn't required. Are you using SVGALIB? This is
> outside my experience, but my impression was also that SVGALIB is loaded
> at runtime, so it is not part of the executable either.
Also linux supports shared libraries, which means you don't link all the
code in the executable (something like DLLs). 

-- 
http://www.cam.org/~tudor
"I INSERTED THE DISK INTO THE COMPUTER, AND TURNED IT ON. LET THERE BE
DOS,I SAID! AND THERE WAS DOS." -- Bill Gates, 1977

- Raw text -


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