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

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

RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( )


From: Weddington, Eric
Subject: RE: [avr-libc-dev] bug in rand()/random()/do_rand()/do_random( )
Date: Sun, 4 Jan 2009 21:00:43 -0700

 

> -----Original Message-----
> From: Mikal Hart [mailto:address@hidden 
> Sent: Sunday, January 04, 2009 8:38 PM
> To: Weddington, Eric; 'Joerg Wunsch'; address@hidden
> Subject: RE: [avr-libc-dev] bug in 
> rand()/random()/do_rand()/do_random( )
> 
> > So far the evidence that you present points somehow to a 
> problem with
> 4.3.0, since this user said it works with 4.3.2. There are 
> known problems
> with 4.3.0 (for the AVR target) so I'm not totally surprised 
> that 4.3.2
> would fix it.
> 
> The only thing that makes me uneasy is that I don't see 
> exactly where the
> defective compiler comes into play.

Avr-libc is compiled with avr-gcc. The random functions in avr-libc are written 
in C, hence the generated code is dependent on the avr-gcc compiler. Avr-gcc 
4.3.0 has code generation problems that are known. Avr-gcc 4.3.2 fixes those 
code generation problems. So it is a matter of what version of avr-gcc was used 
to compile avr-libc.

Is that any clearer?




reply via email to

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