> Is naked property implemented for pic 14 ?

naked (_naked and __naked) are not pic14 target keywords nor are 
implemented fot pic14 target.

 > if not why?

probably because nobody implemented it...
There is already a feature request 
http://sourceforge.net/tracker/?func=detail&aid=1432077&group_id=599&atid=350599
 
<http://sourceforge.net/tracker/?func=detail&aid=1432077&group_id=599&atid=350599>,
 
so you can just hope that somebody will implement it, or you can 
implement it by yourself and submit the patch to sdcc patches tracker at 
http://sourceforge.net/tracker/?atid=300599&group_id=599&func=browse 
<http://sourceforge.net/tracker/?atid=300599&group_id=599&func=browse>.


Borut


On 10/23/2010 12:29 PM, Raúl QRV wrote:
> Hello,
>
> I'm trying to make an naked interrupt function for pic14 (pic16f876a), 
> in page 48 of SDCC's manual I found this example for 8051:
>
>
>
> void nakedInterrupt(void) __interrupt (2) __naked
> {
>     __asm
>       inc     _counter ; does not change flags, no need to save psw
>       reti    ; MUST explicitly include ret or reti in _naked
>    function.
>     __endasm;
> }
>
>
> I also found some examples for pic16 (PIC18Fxxx) but anyone for pic 14 
> and  the compiler retuns me syntax error:
>
> byte...@eeepc-byteptr:~/trabajos/PLL$ sdcc -mpic14 -p16f876 --nogcse  
> pllfifo.c -o pllfifo
>
> pllfifo.c:120: syntax error: token -> '__naked' ; column 42
>
> this is the header of the ISR routine:
>
> void serialisr(void) __interrupt 0 __naked
>
> Is naked property implemented for pic 14 ?, if not why? and how can I 
> make for overcome this problem?
>
> thanks in advance


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to