alistairpaul
Programmer
I'm a SQL DBA and part-time VB/VBS/ASP programmer. I've come upon something I'd like to do in C/C++, and don't know the language, but would like to learn.
While playing with Visual C++ (6) last night, I made a silly little "hello world" app, with one single printf() line and an include of only stdio.h.. The resulting executable came out to be 150k, which i thought was absolutely outrageous. I spoke to a programmer at work today and he said that I probably compiled in debug mode. He made the same thing and compiled not in debug mode and got a resulting file of 60k. I still think that this is way over what it should be. Am I wrong for this? I had thought that this file shouldn't be any more than maybe 5-10-at the most 20k!
Is there a way to compile, perhaps with a different compiler to make files down to a small size like this? I'm looking at this for bandwidth concerns.
Thanks!
While playing with Visual C++ (6) last night, I made a silly little "hello world" app, with one single printf() line and an include of only stdio.h.. The resulting executable came out to be 150k, which i thought was absolutely outrageous. I spoke to a programmer at work today and he said that I probably compiled in debug mode. He made the same thing and compiled not in debug mode and got a resulting file of 60k. I still think that this is way over what it should be. Am I wrong for this? I had thought that this file shouldn't be any more than maybe 5-10-at the most 20k!
Is there a way to compile, perhaps with a different compiler to make files down to a small size like this? I'm looking at this for bandwidth concerns.
Thanks!