Main Page | Report this Page
Computers Forum Index  »  Computer Compilers - LCC  »  Improvements to the checkoverflow option...
Page 1 of 1    

Improvements to the checkoverflow option...

Author Message
jacob navia...
Posted: Mon Sep 07, 2009 12:48 pm
Guest
(1) I have modified the code generator to generate a jump to an
error label if there is an overflow, instead of generating
code to jump over error code if there is NO overflow.

This reduces the overhead of overflow checking from 4% to almost
zero (not measurable in my setup).

(2) I have added a #pragma overflowcheck (On/Off)
This pragma turns on/off overflow checking. Like other pragmas
of lcc-win, you can also use:
#pragma overflowcheck(push,on) // Turns on checking and pushes
// the current state
#pragma overflowcheck(pop) // Pops the previous state

This will be available this week.
 
 
Page 1 of 1    
All times are GMT
The time now is Sat Nov 28, 2009 11:58 pm