Hello all,

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

Regards,

Jan

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to