comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: where exactly c++,c fail and Ada gets thru'
Date: Tue, 02 May 2006 08:43:14 +0200
Date: 2006-05-02T08:43:14+02:00	[thread overview]
Message-ID: <e36v21$13h$1@sunnews.cern.ch> (raw)
In-Reply-To: <1201812.r16X2gYOJE@linux1.krischik.com>

Martin Krischik wrote:

> But it is the callers responsibility to check the input parameter before
> calling the function.

Of course - and it's where the code inlining can be useful. The biggest 
advantage of inlining is not in removing function call/return stuff, but 
in putting together things that otherwise could not be analysed together.

We could now start endless debate on the cases where you can or cannot 
have code inlining, but the whole point in optimization is that there 
are many ways to do it (including global program optimization, things 
like JIT and so on) - and, as already said, it's where compiler vendors 
compete. It's easier to optimize languages that have richer type 
information (and again - nobody questions that), but at the end of the 
day it's only the sequence of *observable behaviours* that is of 
interest to the programmer and everything else is left at the mercy of 
the optimizer - in this light, range checking is one of those things 
that are relatively easy to optimize.


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



  parent reply	other threads:[~2006-05-02  6:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24  4:19 where exactly c++,c fail and Ada gets thru' Ananth the Boss
2006-04-24  5:05 ` jimmaureenrogers
2006-04-24  7:45   ` Ananth the Boss
2006-04-24 19:17   ` Martin Krischik
2006-04-24 20:23   ` Simon Wright
2006-04-24 22:34     ` Keith Thompson
2006-04-24 22:33   ` Keith Thompson
2006-04-25  5:23     ` Jeffrey R. Carter
2006-04-26 17:48     ` Martin Krischik
2006-04-26 19:33       ` Keith Thompson
2006-04-26 15:10   ` Maciej Sobczak
2006-04-26 17:32     ` Martin Krischik
2006-04-27 10:07       ` Maciej Sobczak
2006-04-27 21:19         ` Keith Thompson
2006-04-28  7:00         ` Martin Krischik
2006-04-28 12:27           ` Maciej Sobczak
2006-04-29  7:03             ` Martin Krischik
2006-04-29 14:08               ` REH
2006-05-01 10:20                 ` Xcriber51
2006-05-01 13:55                   ` REH
2006-05-02  6:43               ` Maciej Sobczak [this message]
2006-04-27 16:48       ` REH
2006-04-28  7:49         ` Martin Krischik
2006-04-28 11:17           ` REH
2006-04-29  6:47             ` Martin Krischik
2006-04-24  8:13 ` Rod Chapman
2006-04-25  1:57 ` Steve
replies disabled

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