Compile Options for Array Overruns

Compile Options for Array Overruns

I am currently using the enterprise edition 6.6 of VF and have run across a problem. When I run the code remotely on an SGI machine, I get a segmentation fault. Unfortunately, the enterprise toolkit doesn't allow for remote debugging on an SGI. When I compile the program locally on my PC it runs fine, so I think that the PC just doesn't crash on and array-overrun. I know that there is usually a compile time option to force a fatal error when an array is over-run, but I can't figure out how to do it in VF. Anyone done this??

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The option for array bounds checking is on by default in a Debug configuration in Developer Studio. If you are compiling from the command line, use /check:bounds. Please note that if you declare assumed-size arrays with bounds (*), these are not checked.

Another possible cause of such errors is argument type mismatches.

Steve

Steve - Intel Developer Support

Is there a way to cause a fatal error when a mismatch occurs?? I can't quite figure out why I get a fault on the SGI machine but not the PC..

Well, if you compile all your sources together and use the option /warn:argument_checking, the compiler may be able to tell you at compile time. Segmentation faults (access violations) can be caused by many different things. Do you not have any clue as to where in the program the error occurs?

Steve

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today