cancel
Showing results for 
Search instead for 
Did you mean: 

Big arrays in st72f63 and Cosmic c

ohadr2
Associate II
Posted on May 15, 2006 at 11:04

Big arrays in st72f63 and Cosmic c

3 REPLIES 3
ohadr2
Associate II
Posted on May 14, 2006 at 13:28

hello

i want do use big arrays and i can not compile this program.

my program is :

#include

char data1[200];

char data2[200];

void main(void)

{

}

can any one help me??

luca239955_st
Associate III
Posted on May 15, 2006 at 06:34

with an array bigger than 128 bytes (actually, a little bit less) you need to make sure that it is allocated outside of page 0.

To do this, either select a model that put variables in the long range by default (any ''long'' model), or force your arrays in the long range by hand:

@near char data1[200];

@near char data2[200];

Regards,

Luca (Cosmic)

ohadr2
Associate II
Posted on May 15, 2006 at 11:04

Thanks a lot.

it is working now.

ohad.