AnsweredAssumed Answered

Can I make the array at the beginning or a fixed offset of generated bin file by the compiler?

Question asked by jack wan on Jan 24, 2018
Latest reply on Feb 23, 2018 by Martin Kovar

Dear Sir,

             I am working on the MPC5566 Chip. I want to define a const array like 'const void * conFuncTable[]' in my software and this table has some pointers which point to the function in my software. Can I make the array at the beginning or a fixed offset of generated bin file by the compiler?So that when I load the bin file to RAM, the array is loaded to a fixed address and other softwhere can invoke the functions of the array by access the fixed address. Is there any option of compiler for it? Many thanks!

 

BR,

 

Jack.

Outcomes