[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] [Bug target/35634] New: [avr] result of char promotio

From: Dave N6NZ
Subject: Re: [avr-gcc-list] [Bug target/35634] New: [avr] result of char promotion comes out of CHAR_MIN/MAX
Date: Wed, 19 Mar 2008 16:48:38 -0800
User-agent: Thunderbird 1.5 (X11/20051201)

Dmitry K. wrote:

Now I can not understand, why the Standart permits
'undefined behavior' with ordinary overflow,

Well, checking for integer overflow can cause a lot of code to be generated on some architectures. That becomes both a space and performance issue. In general, the C standard favors fast and small over tightly defined results.

You might like Ada :)
Just kidding.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]