Re: [Fwd: Re: ARM Cortex M3 Macro Limitation]

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

 



On 04/20/2010 01:45 AM, Thomas M. Alldread wrote:
RAMBBTEST(varName,bit)  (uint32_t)&varName-SRAM_BASE*32+4*bit+SRAM_BB_BASE

I noticed that there is no "( )" around "&varName-SRAM_BASE" compared to your original code. This might be the cause that you got better code since symbol + constant can be handled well while symbol * constant + constant cannot.


--
Jie Zhang
CodeSourcery
(650) 331-3385 x735

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux