From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Code size of Ada ? was Re: Ada95 Strengths/Weaknesses.
Date: 1999/09/28
Date: 1999-09-28T00:00:00+00:00 [thread overview]
Message-ID: <37F0E0AC.9A1F50ED@maths.unine.ch> (raw)
In-Reply-To: 37F0D03C.DE4807D4@icn.siemens.de
> Ok, so can you please tell me what I'm doing wrong ? All my test (from a
> simple "Hello world" upto a TCP/IP program with tasks) generate much
> bigger exe-files (WIN/NT or OS/2) than the C, Pascal or Modula-2
> compilers I've tried. I used the default settings.
The .exe size will be (roughly said...) AX+B, where X is the amount of instructions
of _your_ program. AX is the object compiled code size. Dr Dewar just
told that since the A does not depend on the front end (Ada, C, Pascal,
Modula...) in the GCC system, AX will be the same in the different languages
- provided that your source codes is the tightly equivalent!
The B is the default library code that comes at linking and that
one is bigger in Ada (richer conversions, exception handling, tasking,
elaboration, ...?), so your .exe can be bigger. But B is a ``fixed cost''.
> What switches are
> needed to generate the smallest possible code ?
Generally pragma suppress_all plus optimizations. With GNAT: -gnatp -O2
or more...
--
Gautier
--------
http://members.xoom.com/gdemont/
next prev parent reply other threads:[~1999-09-28 0:00 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-27 0:00 Ada95 Strengths/Weaknesses the middleman
1999-09-27 0:00 ` J. David Bryan
1999-09-27 0:00 ` Steve Doiel
1999-09-27 0:00 ` Marin David Condic
1999-09-27 0:00 ` Hyman Rosen
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` Preben Randhol
1999-09-28 0:00 ` bill
1999-09-27 0:00 ` Aidan Skinner
1999-09-28 0:00 ` Preben Randhol
1999-09-28 0:00 ` Larry Kilgallen
1999-09-28 0:00 ` Steve Doiel
1999-09-28 0:00 ` Ed Falis
1999-09-28 0:00 ` Hyman Rosen
1999-09-28 0:00 ` Ed Falis
1999-09-28 0:00 ` Preben Randhol
1999-09-27 0:00 ` David Starner
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` David Starner
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` Ray Blaak
1999-09-28 0:00 ` David Starner
1999-09-29 0:00 ` Robert A Duff
1999-09-28 0:00 ` the middleman
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` GNAT listing file default names (was: Ada95 Strengths/Weaknesses) Larry Kilgallen
1999-09-28 0:00 ` Gautier
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Larry Kilgallen
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Larry Kilgallen
1999-09-30 0:00 ` Robert Dewar
1999-09-28 0:00 ` Code size of Ada ? was Re: Ada95 Strengths/Weaknesses Alfred Hilscher
1999-09-28 0:00 ` David Botton
1999-09-28 0:00 ` Gautier [this message]
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Larry Kilgallen
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Alfred Hilscher
1999-09-29 0:00 ` Ted Dennison
1999-09-29 0:00 ` Gautier
1999-09-29 0:00 ` Ed Falis
1999-09-29 0:00 ` Gautier
1999-09-29 0:00 ` tmoran
1999-09-30 0:00 ` Robert Dewar
1999-09-29 0:00 ` Robert Dewar
1999-09-30 0:00 ` Alfred Hilscher
1999-09-30 0:00 ` Gautier
1999-09-30 0:00 ` Robert Dewar
1999-09-30 0:00 ` Robert Dewar
1999-09-30 0:00 ` Robert Dewar
1999-09-30 0:00 ` Robert Dewar
1999-09-30 0:00 ` tmoran
1999-09-30 0:00 ` Ehud Lamm
1999-09-30 0:00 ` Robert Dewar
[not found] ` <7t2e1l$lqt2@ftp.kvaerner.com>
[not found] ` <37F91D6E.58685CFE@mitre.org>
[not found] ` <7tf7uo$h2b$1@nnrp1.deja.com>
[not found] ` <37FBA978.A86762F1@mitre.org>
1999-10-18 0:00 ` Robert Dewar
1999-10-19 0:00 ` Code size of Ada ? Robert I. Eachus
[not found] ` <7tf7uo <37FBA978.A86762F1@mitre.org>
[not found] ` <5OkO3.2$1e.659@typhoon.nyu.edu>
1999-10-19 0:00 ` Code size of Ada ? was Re: Ada95 Strengths/Weaknesses Robert I. Eachus
1999-09-29 0:00 ` Robert Dewar
1999-09-29 0:00 ` Alfred Hilscher
1999-09-29 0:00 ` Robert Dewar
1999-09-30 0:00 ` Alfred Hilscher
1999-09-30 0:00 ` Gautier
1999-09-30 0:00 ` Robert Dewar
1999-09-28 0:00 ` David Starner
1999-09-28 0:00 ` Gautier
1999-09-28 0:00 ` Ed Falis
1999-09-28 0:00 ` David Starner
1999-09-29 0:00 ` Robert Dewar
1999-09-28 0:00 ` David Starner
1999-09-29 0:00 ` Robert Dewar
1999-09-28 0:00 ` p.obry
1999-09-28 0:00 ` David Starner
1999-09-28 0:00 ` Richard D Riehle
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` Robert Dewar
1999-09-28 0:00 ` David Starner
1999-09-29 0:00 ` Robert Dewar
1999-09-30 0:00 ` Pragma (was Re: Ada95 Strengths/Weaknesses.) Preben Randhol
1999-09-30 0:00 ` Preben Randhol
1999-09-28 0:00 ` Ada95 Strengths/Weaknesses Ted Dennison
1999-09-28 0:00 ` Simon Wright
1999-09-28 0:00 ` Geoff Bull
1999-09-28 0:00 ` Geoff Bull
1999-09-29 0:00 ` the middleman
1999-09-29 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox