Re: Optimization techniques and undefined behavior

George Neuner <gneuner2@comcast.net>
Sat, 04 May 2019 17:59:22 -0400

          From comp.compilers

Related articles
[22 earlier articles]
Re: Optimization techniques and undefined behavior anw@cuboid.co.uk (Andy Walker) (2019-05-03)
Re: Optimization techniques and undefined behavior david.brown@hesbynett.no (David Brown) (2019-05-03)
Re: Optimization techniques and undefined behavior bc@freeuk.com (Bart) (2019-05-03)
Re: Optimization techniques and undefined behavior bc@freeuk.com (Bart) (2019-05-03)
Re: Optimization techniques and undefined behavior anw@cuboid.co.uk (Andy Walker) (2019-05-04)
Re: Optimization techniques and undefined behavior gneuner2@comcast.net (George Neuner) (2019-05-04)
Re: Optimization techniques and undefined behavior gneuner2@comcast.net (George Neuner) (2019-05-04)
Re: Optimization techniques and undefined behavior david.brown@hesbynett.no (David Brown) (2019-05-06)
Re: Optimization techniques and undefined behavior martin@gkc.org.uk (Martin Ward) (2019-05-06)
Re: Optimization techniques and undefined behavior robin51@dodo.com.au (Robin Vowels) (2019-05-07)
Re: Optimization techniques and undefined behavior derek@_NOSPAM_knosof.co.uk (Derek M. Jones) (2019-05-06)
Re: Optimization techniques and undefined behavior david.brown@hesbynett.no (David Brown) (2019-05-07)
Re: Optimization techniques and undefined behavior david.brown@hesbynett.no (David Brown) (2019-05-07)
[5 later articles]
| List of all articles for this month |
From: George Neuner <gneuner2@comcast.net>
Newsgroups: comp.compilers
Date: Sat, 04 May 2019 17:59:22 -0400
Organization: A noiseless patient Spider
References: 19-04-021 19-04-023 19-04-037 19-04-039 19-04-042 19-04-044 19-04-047 19-05-004 19-05-006 19-05-016 19-05-020 19-05-024
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="77447"; mail-complaints-to="abuse@iecc.com"
Keywords: errors, arithmetic
Posted-Date: 04 May 2019 18:32:35 EDT

On Fri, 3 May 2019 23:10:53 +0100, Bart <bc@freeuk.com> wrote:




>I just haven't found overflow on numbers the huge problem that people
>say it is.


It was much more of a problem on 16-bit machines. The vast majority
of *typical* integer uses in programs will not overflow 32 bits. But
even with 64 bits, there still are situations - i.e. untrusted user
input - where prudence demands that you test.


George


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.