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

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

RE: [avr-gcc-list] Accessing function and strings in flash intheATMega 6


From: Weddington, Eric
Subject: RE: [avr-gcc-list] Accessing function and strings in flash intheATMega 644
Date: Thu, 5 Feb 2009 06:18:46 -0700

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> 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 
better.




reply via email to

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