[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Accessing function and strings in flash intheATMega 6
RE: [avr-gcc-list] Accessing function and strings in flash intheATMega 644
Thu, 5 Feb 2009 06:18:46 -0700
> -----Original Message-----
> org] On Behalf Of Robert von Knobloch
> Sent: Thursday, February 05, 2009 1:46 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Accessing function and strings in
> flash intheATMega 644
> Weddington, Eric wrote:
> 1. Why is this 'too complex for the compiler' ?
> 2. How can I know when the compiler's complexity limit has
> been reached?
The issue is not complexity for the compiler, it's the complexity in the
*macro*. Remember, macros just do simple text replacement, and can easily be
abused. You should read up on some dangers of using macros.
But this is why simplifying the expression in the macro parameter made it work