Related articles |
---|
eliminating array bounds checking overhead mayur_naik@my-deja.com (2000-04-26) |
Re: eliminating array bounds checking overhead stephan@pcrm.win.tue.nl (2000-04-27) |
Re: eliminating array bounds checking overhead vugluskr@unicorn.math.spbu.ru (2000-04-27) |
Re: eliminating array bounds checking overhead jprice@scdt.intel.com (2000-04-27) |
Re: eliminating array bounds checking overhead blaak@infomatch.com (Ray Blaak) (2000-04-27) |
Re: eliminating array bounds checking overhead Sid-Ahmed-Ali.TOUATI@inria.fr (Sid Ahmed Ali TOUATI) (2000-04-27) |
Re: eliminating array bounds checking overhead rhyde@shoe-size.com (Randall Hyde) (2000-04-27) |
Re: eliminating array bounds checking overhead nr@labrador.eecs.harvard.edu (2000-04-27) |
Re: eliminating array bounds checking overhead terryg@uswest.net (Terry Greyzck) (2000-04-27) |
[14 later articles] |
From: | vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) |
Newsgroups: | comp.compilers |
Date: | 27 Apr 2000 10:45:10 -0400 |
Organization: | St.Petersburg University |
References: | 00-04-194 |
Keywords: | optimize, comment |
On 26 Apr 2000 02:44:19 -0400, mayur_naik@my-deja.com wrote:
>Does any language or any machine provide some mechanism to:
>
>1. index an array without checking its bounds
>2. throw an exception if the index was actually out of range
>3. allow the programmer to catch and handle the exception rather than
> terminate the program
As for the language side Java definitely has "out of bound
exception". And I guess that it is trivial to emulate this on C++
using overloaded operator [].
As for the hardware side I guess that most modern architectures have
something like BOUND on Intel.
The trickery comes when one wants to use language feature fast or IOW
be hardware dependent. Well, I know nothing about compilers generating
hardware specific code like BOUND command on Intel.
Roman.
[BOUND is still useless, I know of no compilers that generate it. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.