From: 谢继雷 <xj...@99...> - 2010-07-14 01:04:15
|
When writing naked inline asm functions, how to declare those registers used by the function, without push/pop to stack? Lenik |
From: Frieder F. <fri...@we...> - 2010-07-14 18:58:03
|
Hi 谢继雷, Am 14.07.2010 03:03, schrieb 谢继雷: > When writing naked inline asm functions, how to declare those registers > used by the function, > without push/pop to stack? Unfortunately SDCC does not support this, so unfortunately there is nothing like callee-clobers-registers R4,R5 or callee-saves-registers R0-R3,R7 or inline-asm-clobers R6. Greetings, Frieder |
From: 谢继雷 <xj...@99...> - 2010-07-15 02:42:26
|
On 2010-7-15 02:57, Frieder Ferlemann wrote: > Unfortunately SDCC does not support this, so unfortunately > there is nothing like callee-clobers-registers R4,R5 or > callee-saves-registers R0-R3,R7 or inline-asm-clobers R6. Then, will it be supported in near or future? Lenik |
From: Maarten B. <sou...@ds...> - 2010-07-15 06:06:03
|
> On 2010-7-15 02:57, Frieder Ferlemann wrote: > > Unfortunately SDCC does not support this, so unfortunately > > there is nothing like callee-clobers-registers R4,R5 or > > callee-saves-registers R0-R3,R7 or inline-asm-clobers R6. > Then, will it be supported in near or future? I don't think so. Currently SDCC uses caller-saves- registers by default. This means that all registers (in the functions register bank) are free to be used in a __naked function. Maarten |