From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_MSGID, PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd7d510783cb3f76 X-Google-Attributes: gid103376,public From: Simon FitzMaurice Subject: RE: Executable File Size Differences Date: 1996/09/28 Message-ID: <01bbad48.62d509c0$0f899dc0@karen>#1/1 X-Deja-AN: 185854879 sender: news@thomsoft.com references: <52bmn5$7r0@sjx-ixn6.ix.netcom.com> organization: Thomson Software Products, Burlington, MA, USA newsgroups: comp.lang.ada Date: 1996-09-28T00:00:00+00:00 List-Id: There are two flavours of debugging information (Ada debugging and CodeView - see the checkboxes on the link tab) optionally included in the executables in *non-loadable* segments. The use of each of these significantly affects the size of "hello.exe" as the following table indicates: Ada debug Y N Codeview debug Y 732104 331712 N 732032 84480 Note that it is possible to remove debugging information from an executable using the command "cvpack /strip". The true memory footprint is always most accurately determined from the link map. In future versions it will be possible to link to the runtime in a DLL; this further reduces the size of "hello.world" to around 10k without debug (like MSVC). Simon FitzMaurice Principal Software Engineer Thomson Software Products 200 Wheeler Road Burlington MA 01803 On Wednesday, September 25, 1996, Georgi Savov wrote... > Robert P. Kuzmicki wrote: > > > > I tried compiling a simple "Hello World" program with the Thomson Software's ActivAda for Windows > > and Thomson's new "ObjectAda". The ActivAda version produces a executable file size of about 288K. > > ObjectAda produces an exe of about 788K. Microsoft C++ produces an exe of about 10K. Why are the > > executables so substantially different? Are the Ada compilers linking in alot of excess baggage? I > > have tried various compiler switches, but nothing seems to shrink the exe file sizes. > > > > Can anyone enlighten me here? > Probably you are looking at the Debug version of the EXE file. > Try making a Release Version. I did. It is 83K. > > Georgi Savov >