This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: Re: ARM Cortex M3 Macro Limitation]
- From: Jie Zhang <jie at codesourcery dot com>
- To: "Thomas M. Alldread" <tmall at telus dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Apr 2010 09:16:38 +0800
- Subject: Re: [Fwd: Re: ARM Cortex M3 Macro Limitation]
- References: <4BCC96C5.50301@telus.net>
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