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

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

Re: [avr-gcc-list] Re: sprintf


From: Pertti Kellomäki
Subject: Re: [avr-gcc-list] Re: sprintf
Date: Tue, 03 Mar 2009 20:53:53 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

David Brown wrote:
It is even free to reorganise the array, or keep it all in registers (I don't think any compilers do that, but maybe one day...),

In a piece of DSP code, our LLVM-based compiler was able to
convert a small temporary array into a set of scalar variables,
which subsequently ended up in registers. So at least LLVM is
able to do this today. I would be somewhat surprised if gcc
were not capable of doing similar things.

I am not entirely convinced that using pointer arithmetic
instead of array subscripting would make much difference here
though, but I am not a C expert by any means.
--
Pertti




reply via email to

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