Mail Archives: djgpp/1997/01/28/09:33:08
On 27 Jan 1997, Jonathan Kapleau wrote:
> Maybe this is a stupid question, but how come when I compile a simple
> program (i.e. "Hello, World!") using DJGPP on my pc using only the
> <stdio.h> header file it compiles to something like 80k, but when I
> compile it using gcc under Linux the same program compiles to about 4k.
GCC on Linux supports shared libraries, so all of the library functions
your program calls aren't at all put into the program, they are loaded at
runtime. DJGPP doesn't support shared libraries.
- Raw text -