comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: A couple of quick questions
Date: Sat, 29 Dec 2012 11:47:44 +0100
Date: 2012-12-29T11:47:44+01:00	[thread overview]
Message-ID: <87zk0xkucv.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: 0387724a-7fd2-4317-ba16-d3322dd0fdec@googlegroups.com

* Dufr:

> Is the efficiency of the compiled code by penalized in any way by
> the putative bloat of the language?

Yes, for some features.  Exception handling tables increase the size
of the program even if they are not used because no exceptions are
thrown.  Run-time checks (such as overflow checks and array bounds
checks) are typically bloat which increases instruction cache pressure
and decreases effective execution speed.  Code for abort deferral is
automatically inserted by the compiler and slows down the program,
even if no asynchronous transfer of control ever occurs.

Proper compiler flags can eliminate these overheads, in some cases
without any ill effects or observable differences in behavior (not so
for array bounds checks, obviously).



  parent reply	other threads:[~2012-12-29 10:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 15:02 A couple of quick questions Dufr
2012-12-28 15:43 ` Thomas Løcke
2012-12-28 16:46 ` Georg Bauhaus
2012-12-28 20:28 ` Dufr
2012-12-28 23:27   ` Georg Bauhaus
2012-12-28 23:36     ` Georg Bauhaus
2012-12-29  0:41   ` Yannick Duchêne (Hibou57)
2012-12-29 10:47   ` Florian Weimer [this message]
2012-12-29 16:15     ` Shark8
2012-12-29 16:32       ` Bill Findlay
2012-12-29 17:21       ` Florian Weimer
2012-12-31  8:56 ` Paul Colin Gloster
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox