cancel
Showing results for 
Search instead for 
Did you mean: 

Starttup code and global variables

marcus23
Associate II
Posted on January 06, 2005 at 09:39

Starttup code and global variables

3 REPLIES 3
marcus23
Associate II
Posted on January 05, 2005 at 11:34

Hi,

got a problem with initialization of global variables. If I try to assign a value to a global variable like this:

int MyInt[]={1,2,3,4};

it won´t work safely (sometimes it works, sometimes it won´t). So, is there another startup file that is needed to initialize these variables while declaring them? I know we had a similiar problem with a compile for ST7 some time ago, and there another startup while was needed to change this behaviour.

Best Regards,

Marcus

marcus23
Associate II
Posted on January 05, 2005 at 11:35

I forgot:

I´m using RVDK1.0 and RVDS 2.1

marcus23
Associate II
Posted on January 06, 2005 at 09:39

Thank you RISC, that was the hint I was searching for :)