Skip to main content
marcus23
Associate III
Jan 6, 2005 8:39 AM UTC
Question

Starttup code and global variables

Posted on January 06, 2005 at 09:39

Starttup code and global variables

This topic has been closed for replies.

3 replies

marcus23
marcus23Author
Associate III
Jan 5, 2005 10:34 AM UTC
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
marcus23Author
Associate III
Jan 5, 2005 10:35 AM UTC
Posted on January 05, 2005 at 11:35

I forgot:

I´m using RVDK1.0 and RVDS 2.1

marcus23
marcus23Author
Associate III
Jan 6, 2005 8:39 AM UTC
Posted on January 06, 2005 at 09:39

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