Skip to main content
Visitor II
May 15, 2006
Question

Big arrays in st72f63 and Cosmic c

  • May 15, 2006
  • 3 replies
  • 896 views
Posted on May 15, 2006 at 11:04

Big arrays in st72f63 and Cosmic c

    This topic has been closed for replies.

    3 replies

    ohadr2Author
    Visitor II
    May 14, 2006
    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??

    Visitor II
    May 15, 2006
    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)

    ohadr2Author
    Visitor II
    May 15, 2006
    Posted on May 15, 2006 at 11:04

    Thanks a lot.

    it is working now.

    ohad.