From: Vic 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: <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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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