Mail Archives: djgpp/1997/05/31/21:35:45
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 -