avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Multiply is broken on Mega128


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Multiply is broken on Mega128
Date: Thu, 30 Jan 2003 09:59:20 +0100 (MET)

"Larry Barello" <address@hidden> wrote:

> Or was the compiler promoting the char to an int, which overflowed,
> before promoting to a long?

I think so.  AFAICT, chars are first promoted to int, then everything
is promoted to the type of the expression.

In programs for large machines, you normally don't observe this
behaviour frequently because you wouldn't use "char" in the first
place (doesn't save you anything unless you've got huge arrays of it).

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org



reply via email to

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