[RFC] Program Bounds Checking

Robert Dewar dewar@adacore.com
Thu Sep 28 19:01:00 GMT 2006


Tzi-cker Chiueh wrote:
> We have considered the bound instruction in the CASH project. But
> we found that bound instruction is slower than the six normal
> instructions it is meant to replace for range checking. For example, the
> bound instruction on a 1.1 GHz PIII machine requires 7-8 clock cycles
> while the 6 equivalent instructions require 6-7 clock cycles. We have not
> tested it on newer processors, though.

Might still be appropriate to use it in -Os mode I would think ...



More information about the Gcc mailing list