Part Number: TMS320F2800157
Hi Team,
The GetBoardWorkingFlag() function is defined as follows, which is an inline type.
Then call this function somewhere.
Because it is an inline function, this function should not exist after compilation, and will be expanded where it is called (similar to the effect of a macro definition).
And there is indeed no such function in the map file.
But where this function is called, the assembly instruction is LCR (function jump instruction).
static inline bool GetBoardWorkingFlag()
{
return (boardStatus_WorkingNormal == boardStatus);
}
bool boardWorkingFlag = GetBoardWorkingFlag();
0094b3: 7640919E LCR GetBoardWorkingFlag ---GetBoardWorkingFlag() is of inline type and should be expanded where it is called, without being called. Why is there still a function jump instruction here?
0094b5: 9645 MOV *-SP[5], AL
--
Thanks & Regards
