Checking overflow

J

jacob navia

I have added overflow checking as an optional feature of lcc-win32.
This means integer addition/subtraction/multiplication are tested
for overflow. If the overflow is detected, I call a user function

void _overflow(char *FunctionName, int LineNumber);

Questions:

1: Do you know if any compiler provides this or similar facility?

2: What interface do they use?

Floating point operations are *not* tested since C99 provides
a standard way of unmasking the overflow flag.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top