• Development log
  • Technical papers
  • Live docs

More Resources

Recent Papers

Browse by Technology

Dev Log Archives

Developer Center

[GNAT] Widen operands in conversions to avoid overflow

Sunday June 28, 2009

More cases of conversion (notably those to float or fixed types) widen the type used for arithmetic to avoid intermediate conversion. For example in the expresion f(a*b) where f is a floating-point type, a and b will be converted to Long_Long_Integer before doing the multiplication.

 

Posted by Posted in Development Log, GNAT Compilation System