arithmetic overflow issue, how do I turn checking off in a compiled code module?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Hi,

I have a script that is compiled like this:

provider = New Microsoft.VisualBasic.VBCodeProvider
compiler = provider.CreateCompiler
_results = compiler.CompileAssemblyFromSource(params,
_code)

but my script fails with arithmetic overflows (it's a Perlin Noise
function). I know how to turn the overflow check on and off within
the .Net environment, but that only applies to the project, not to the
dynamic script that my project compiles.

How do I turn the overflow checking off for my compiled script?

Cheers,

Richy
.



Relevant Pages

  • RE: arithmetic overflow issue, how do I turn checking off in a compile
    ... compiler = provider.CreateCompiler ... but my script fails with arithmetic overflows (it's a Perlin Noise ... dynamic script that my project compiles. ... How do I turn the overflow checking off for my compiled script? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Adding Older Versions of GCC To The Tool Chain ... safely?!?!
    ... doing optimizing? ... The original "vulnerability" report, not just the Heise article, uses ... There is by definition no such thing as 'an unsigned overflow', ... and a C compiler is still free to do whatever it chooses. ...
    (comp.os.linux.development.apps)
  • Re: extended operators
    ... between the sequence point X and the last sequence point. ... Perhaps it should be a macro, defined in a new header, that expands to some implementation-defined expression (possibly involving compiler magic). ... So you'd mandate specific restrictions on generated code in the presence of calls to _carry, even if the compiler is able to prove that it can perform an optimization without changing the effect? ... The ``result'' member is set to the sum of x and y; unlike an ordinary "+" operator, the result is well defined even on overflow. ...
    (comp.std.c)
  • Re: operators similar to functions?
    ... undefined behaviour; however the compiler cannot know that. ... probably has a pretty good idea of the consequences of overflow ... The HAL StinkWad represents an opposite pole in system design. ...
    (comp.lang.c)
  • A bit of confusion with conversions
    ... why did compiler decide to sign-extend sb - ... overflow checking context (aka under the control of checked/unchecked ...
    (microsoft.public.dotnet.languages.csharp)