Hi all, In Keil C51 compiler, is there any way to declare a function that doesn't automatically save registers (acc, b, dptr, r0-r7...) when called? I want to do it manually. In SDCC, I can use the attribute "_naked" or use #pragma callee_saves". Thanks,
Maybe you can give me a suggestion about some other RTOS.
PK51 comes with RTX51 Tiny. This is tuned for the Keil C51 Compiler and small enough for an 8051.
"RTX51 Tiny ... is ... small enough for an 8051."
Maybe - but its size is still non-zero; in most cases, zero is quite big enough for an 8051 RTOS! ;-)