Re: Ada vs. C performance

David L Moore <dlmoore@ix.netcom.com>
14 Jan 1997 20:10:20 -0500

          From comp.compilers

Related articles
Re: Ada vs. C performance robison@kai.com (Arch Robison) (1997-01-12)
Re: Ada vs. C performance dlmoore@ix.netcom.com (David L Moore) (1997-01-14)
Re: Ada vs. C performance bobduff@world.std.com (1997-01-16)
Re: Ada vs. C performance dlmoore@ix.netcom.com (David L Moore) (1997-01-19)
| List of all articles for this month |
From: David L Moore <dlmoore@ix.netcom.com>
Newsgroups: comp.compilers
Date: 14 Jan 1997 20:10:20 -0500
Organization: Netcom
References: 97-01-084
Keywords: Ada, C++, performance

Arch Robison wrote:


> My main point is that economics, not theory, has the biggest effect on
> whether C or Ada compilers generate faster code.


There is one technical issue which I have not seen addressed in this
thread.


Ada requires that exceptions occur more or less in place (the detailed
requirements can be found in the standard). This can limit code
motion.


C++ exceptions seem to be underspecified in this regard, so the
compiler is free to do what it will. Actually, C++ implicit exceptions
seem to be underspecified in general.


On the other hand, most Ada compilers allow implicit exceptions
(overflow, etc) to be turned off, and in this case, code can be moved
freely.
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.