Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Well, I have no experience with those compilers, but the only limitation to an array in C should be the size of the memory. You wont get any error until the linker tries to assign the array to memory and you'll get an out of bounds error.
On a processor with banked memory like the 8 bit PICs it is up to the compiler. Unless the compiler is smart about it each array is limited to one bank.
If you want to use large arrays the easy thing to do is use a 16 bit processor. Or if the array data is constant write it to a serial EEPROM.
EDIT: C18 documentaion has info on how to use large arrays. So should other compiler's docs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.