Any hope of adding the inline keyword to the C51 compiler so that we can declare functions as inline? For example, I have a C source file that wraps manipulations to the 8051 itself. Some functions are nothing more than: void cntrl_MaskAllInterrupts(void) { EA = 0; } I'd like it so that the compiler could inline this function so I don't get the function call and return overhead. Any chance?
Why not just #define cntrl_MaskAllInterrupts() EA=0 and the compiler inlines the instruction? (EA is defined as sbit in ezregs.h)