integer multiplication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • user923005

    #31
    Re: integer multiplication

    On Mar 10, 7:37 pm, CBFalconer <cbfalco...@yah oo.comwrote:
    Ben Pfaff wrote:
    CBFalconer <cbfalco...@yah oo.comwrites:
    >
    It is unfortunate that compilers don't normally implement a trap on
    integer overflow, so without taking care you can get nonsense
    results.
    >
    <off-topic>
    With recent GCC versions you can use -ftrapv to get a trap on
    integer overflow.
    </off-topic>
    >
    I'm still using 3.2.1, but I might install 4.1 shortly. I thought
    that didn't work for x86 code.
    <OT>
    Assuming Mingw, here are some unofficial 4.x builds (I use them and
    they seem fine):

    </OT>
    --
    <http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
    <http://www.securityfoc us.com/columnists/423>
    >
    "A man who is right every time is not likely to do very much."
    -- Francis Crick, co-discover of DNA
    "There is nothing more amazing than stupidity in action."
    -- Thomas Matthews
    >
    --
    Posted via a free Usenet account fromhttp://www.teranews.co m

    Comment

    • CBFalconer

      #32
      Re: integer multiplication

      user923005 wrote:
      On Mar 10, 7:37 pm, CBFalconer <cbfalco...@yah oo.comwrote:
      >Ben Pfaff wrote:
      >>CBFalconer <cbfalco...@yah oo.comwrites:
      >>
      >>>It is unfortunate that compilers don't normally implement a trap on
      >>>integer overflow, so without taking care you can get nonsense
      >>>results.
      >>
      >><off-topic>
      >>With recent GCC versions you can use -ftrapv to get a trap on
      >>integer overflow.
      >></off-topic>
      >>
      >I'm still using 3.2.1, but I might install 4.1 shortly. I thought
      >that didn't work for x86 code.
      >
      <OT>
      Assuming Mingw, here are some unofficial 4.x builds (I use them and
      they seem fine):

      </OT>
      I was referring to the effectiveness of -ftrapv.

      --
      Chuck F (cbfalconer at maineline dot net)
      Available for consulting/temporary embedded and systems.
      <http://cbfalconer.home .att.net>



      --
      Posted via a free Usenet account from http://www.teranews.com

      Comment

      Working...