|
From: | Marko Panger |
Subject: | [avr-gcc-list] GCC guru question (progue/epilogue sequences) |
Date: | Tue, 9 Jul 2002 22:56:29 +0200 |
Hi all !!
I realy hope somebody could answer the following
question. I will try to explain the situation and my problem.
So... I am writting a RTOS and I would like to have
interrupt handlers written in C language. If I define a function as a INTERRUPT
or SIGNAL the compiler generates the prologue/epilogue sequence automaticaly.
But I don't need this. Registers saving an restoring is managed by my
kernel.
There is another possibility. I could decalre the
interrupt function with NAKED attribute. This would be fine for me since the
compiler doesn't generate the prologue/epilogue sequence. But here comes the
problem. What will happen if I decalare some local variables wich are putted on
the stack ?
I was wondering if is possible to write my own
pro/epi sequences ? How will I now how many variables are putted onto the stack
?
|
[Prev in Thread] | Current Thread | [Next in Thread] |