Constant Array Max Size

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
User avatar
ohararp
Posts: 194
Joined: Tue Oct 03, 2006 11:29 pm
Location: Dayton, OH USA
Contact:

Constant Array Max Size

Post by ohararp » Fri Oct 06, 2006 6:27 pm

I need to create a large constant array. In PDS, I would have done this using CDATA. Using a constant array I think I should be able to acheive the same end result. What is the max length of an array? Is it limited by a formal # or purely by code space available?
Thanks Ryan
$25 SMT Stencils!!!
www.ohararp.com/Stencils.html

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Fri Oct 06, 2006 7:41 pm

64K is the maximum for constant data. You can see an example of a large array by opening

Samples\GLCD\Nokia6100\xImages.bas

The Balloon array is a 24 bit color image which takes 25354 bytes.

TimB
Posts: 262
Joined: Wed Oct 04, 2006 7:25 am
Location: London UK

Post by TimB » Fri Oct 06, 2006 7:41 pm

To late!!

Post Reply