Mail Archives: djgpp/1997/06/12/20:34:58
From: | machine4u <slaisch AT xnet DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Optimization and header info
|
Date: | Thu, 12 Jun 1997 08:29:43 -0500
|
Organization: | XNet - Chicagoland's Regional ISP (630) 983-6064
|
Lines: | 18
|
Message-ID: | <339FF9C7.48F8@xnet.com>
|
NNTP-Posting-Host: | slaisch.xnet.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I am having a really difficult time optimizing my code for C and
C++ programs with DJGPP.
a simple "Hello World" generates the following:
gcc hello.c -s -o hello.exe (generates 36K executable)
gxx hello.cpp -s -o hello.exe (generates 103K executable)
Am I doing something wrong? Why are they so huge?
One more thing, if I were developing a game or something where I would
not need stdio.h or iostream.h, what would I sacrifice besides the
standard console output? printf/scanf/cout/cin?
Thanks for taking the time to read this.
- Raw text -