Short question: Is there any chance to "know" the number of registers
(rx00, rx01 ...) used in a special program and use this number inside
the program itself?
I wrote a small application where i can switch between three tasks with
a pretty basic scheduler on my pic18f device.
Saving and restoring the task context works fine regarding pic18
registers and hardware stack.
My problem, however, is the sdcc software stack. Whenever the isr for
task switching is called sdcc saves a few hardware registers together
with the "registers" rx00, rx01... on the sdcc software stack. I need to
know the number of these registers to correclty.
My first idea was to disable sdcc context saving but this will make
programming of other interrupts unnecessary complicated.
Note: I did compile everything with --stack-auto
Get latest updates about Open Source Projects, Conferences and News.