TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gary Chambers
from: David Noon
date: 1994-12-07 19:35:08
subject: EXE Size

On Tuesday, 12-06-1994  Gary Chambers wrote to All about "EXE Size" as
follows:

GC> Why, apparently, are the resultant .EXE files created by 
GC> Borland C++ for OS/2 1.5 so much larger than their CSet/2 
GC> counterparts?  For example, the disk that accompanies Real 
GC> World Programming for OS/2 2.11 contains examples compiled 
GC> with CSet/2.  When I compile the same exact source code 
GC> with my Borland compiler, the EXE skyrockets in size.  Is 
GC> there something (aside from linking the DLL version of the 
GC> RTL) I can do to decrease this size?  Thanks...

Hi Gary,

Well, for starters, the Borland compiler does produce signifcantly
less efficient object code than does the IBM. But the "gotcha" in 1.5
was exception handling. It seems that even if you don't try to handle
exceptions the compiler will still produce code to introduce the
run-time support for it. Try using -x- as a compiler option (it's
case-sensitive). Also, -RT- will switch off RTTI.

It seems these are switched on for C as well as C++, just in case a
C++ module gets hauled in during the link.

The best solution is to get IBM C Set ++ and use that, though.

Regards

Dave

 * KWQ/2 1.2g * I thunk therefore I am ..... 32-bit compiler
--- Maximus/2 2.02

* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 109/347 2 7 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.