[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.rtsc] Re: Issue with declaring structure variable and array under instance label in xdc fi

dave,

For example   i have the following  configuration in  xdc file

config  UInt32 ARR_SIZE = 2;

instance:

config UInt32 myArr[ARR_SIZE ]= [0,0] /* here normal procedure is to initialize all the 2 elements. Suppose if ARR_SIZE is changed to a higher value through the cfg file static initialization of myArr gives error. To avoid this static initialization of myArr needs to be done some how either in xs file or some other place.

why we need this type of declaration is application users does not like to have pointers to which they have to declare variables and assign them to pointers in Params.

Regards,
Ravindranath Andela