[cc65] Variables + Local Static

From: German Gonzalez <german.gonzalez1gmail.com>
Date: 2007-07-23 20:53:30
Dear All,

I have some doubts about the compiler, for example from an old C code
I have several local variables just too loop an array

int i;
for(i=0; i<5; i++){}

in different functions, but I got an error "too many local variables"
then I use the -Cl to make local variables static.

my questions are:

1. if I used a global variable, may it be more efficient regarding
memory management, because a reuse the same memory address for my
calculation (the loops themselves).

2. if I used too many "static local variables" then the linker doesn't
found more labels, that's because I run out of memory?

Kind Regards,

German
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jul 23 20:53:44 2007

This archive was generated by hypermail 2.1.8 : 2007-07-23 20:53:47 CEST