avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [bugs #11396] Large number jumps to hyperspace


From: Paul Schlie
Subject: Re: [avr-libc-dev] [bugs #11396] Large number jumps to hyperspace
Date: Mon, 27 Dec 2004 03:24:38 -0500
User-agent: Microsoft-Entourage/11.1.0.040913

> From: Russell Shaw <address@hidden>
>> Also as a heads
>> up, if baud has a known value, reg's will also be statically computed (i.e.
>> at compile time), so don't expect to see anything other than it's
>> pre-computed value being assigned.
> 
> It was a compile-time constant.

> From: Russell Shaw <address@hidden> (earlier)
> In the real code, uint16_t baud was set at 9600 using a const literal
> passed as an array parameter.


If it's value was passed as a parameter, it wasn't initialized with a
constant literal, although the value passed as a parameter may have been.
Which at least means that the expression would be expected to generate code,
and likely dying during either the 16 or 32 bit divide as pointed out
earlier by Wojtek Kaniewski; but that should be easy enough to confirm, with
a little luck.






reply via email to

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