Newbie: Huge EXE files for simple programs - why?
I used bcc32 (Borland C++ 5.5.1) command-line compiler to compile a simple "hello world" program, and it's about 70KB. When I used Turbo C++ 3.0 it was a lot smaller. Simple 15-20 line C programs have gone up to 180KB! Why is this?
Is it to do with the compiler itself, the code, or the fact that it's a Windows compiler? How can I produce very small EXE's using C and not assembly language?
Is it possible to compile for DOS with bcc32, or to .COM files?
Thanks,
Dom.
Re: Newbie: Huge EXE files for simple programs - why?
Quote:
Originally posted by Dominic
I used bcc32 (Borland C++ 5.5.1) command-line compiler to compile a simple "hello world" program, and it's about 70KB. When I used Turbo C++ 3.0 it was a lot smaller. Simple 15-20 line C programs have gone up to 180KB! Why is this?
Is it to do with the compiler itself, the code, or the fact that it's a Windows compiler? How can I produce very small EXE's using C and not assembly language?
Is it possible to compile for DOS with bcc32, or to .COM files?
Thanks,
Dom.
COM files are limited and crap...not as efficient as proper exe files...
If I were you, I wouldnt worry about small details like this