[cc65] Re: Too many local variables

From: Payton Byrd <plbyrd1gmail.com>
Date: 2010-11-10 17:00:39
I found the problem and the solution.  I had changed a local variable from a
pointer to a struct to an instance of the struct.  After reading some old
posts in this group I discovered that the struct was too big for the 256
byte local variable size limit.  I was able to make the variables static
since it's not a recursive function and that made the error go away.

On Wed, Nov 10, 2010 at 9:40 AM, Payton Byrd <plbyrd@gmail.com> wrote:

> What are the factors that can cause the "too many local variables"
> compilation error?  I have code that compiled fine up for a while, but now
> it gives me this error after adding some more code elsewhere in the project.
>  Further, it's the only error I get, but it gets it everywhere a local
> variable is used in the function that the compiler is complaining about.
>
> --
> Payton Byrd
> <http://www.paytonbyrd.com>
> <http://it.toolbox.com/blogs/paytonbyrd>
>



-- 
Payton Byrd
<http://www.paytonbyrd.com>
<http://it.toolbox.com/blogs/paytonbyrd>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Nov 10 17:01:11 2010

This archive was generated by hypermail 2.1.8 : 2010-11-10 17:01:13 CET