[M3devel] Disabling runtime checks

Tony Hosking hosking at cs.purdue.edu
Thu Nov 29 16:47:40 CET 2007


m3_option("-NoChecks")  should do it.

For assertions use m3_option("-NoAsserts").

On Nov 29, 2007, at 2:08 AM, Henning Thielemann wrote:

>
> I remember that it was already discussed. I found this one:
>  http://groups.google.de/group/comp.lang.modula3/browse_thread/ 
> thread/5b7cfe805da66f0b/7182f91c5e6e893d?hl=de&lnk=gst&q=range+check
>   but it seems to be out of date. So once again: How can I disable  
> checks
> on overflow, array bound violation, NIL pointer etc. in cm3 for the  
> sake
> of speed? I hoped that '-A' (disable code generation for assertions)
> would do it, since these checks are like built-in ASSERTs, but I was
> wrong.




More information about the M3devel mailing list