N
Neil Kurzman
GS said:I am doing my first real embedded programming project and the supplied
device libraries have a function definition that looks like this:
void FCN(void) = { INTDEF, INTABS, (unsigned short) PTRDEF};
where
INTDEF = some #defined integer
INTABS = some absolute integer (e.g. 2)
PTRDEF = some #defined pointer
The reason I ask is that my program is getting hung up (i.e. program
execution freezes without any exceptions/errors) on a call to this type of
function, but only when I compile with a certain amount of optimization
(everything works fine w/o optimization). This could be a compiler problem
I imagine but I'd like to know what the above statement does.
Thanks for your help.
This is a wild guess. But is the the code trying the generate a function
address? Or call a function by its address?