Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Raphael Neider
Hi, Update regarding __critical: __critical is implemented in SDCC r7307 both as function attribute and in block-syle for both PIC ports. The PIC14 port does not support arguments to critical functions (arg0 is passed in W, and W is required to save INTCON ...). The generated bit fiddling instru

Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Raphael Neider
> Back to the MACRO, wouldn't it be enough with saving and disabling > INTCONbits.GIE? Reading 18F2550 datasheet, GIE disables all interrupts > so PEIE doesn't seem necessary here. Is it different with other PICs? Am I > missing something? >From Figure 9-1 in DS39609B (Interrupt logic gate diagram

Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Diego Herranz
Thanks for your help. Back to the MACRO, wouldn't it be enough with saving and disabling INTCONbits.GIE? Reading 18F2550 datasheet, GIE disables all interrupts so PEIE doesn't seem necessary here. Is it different with other PICs? Am I missing something? Thanks again On Sun, Feb 12, 2012 at 5:00

Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Raphael Neider
Hi, > I think I'll use the MACRO. What about #pragma nooverlay? Is it a nop too? I'll have to look that up (not even sure what nooverlay is supposed to do ...), but I guess it is a nop on PIC targets. > Maybe the manual should say something about it in the PIC16 port section. > I'll think where

Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Diego Herranz
Thanks, I think I'll use the MACRO. What about #pragma nooverlay? Is it a nop too? Maybe the manual should say something about it in the PIC16 port section. I'll think where to say it and write it, what do you think? Thank you very much! On Sun, Feb 12, 2012 at 1:36 PM, Raphael Neider wrote:

Re: [Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Raphael Neider
Hi, > I need to disable interrupts for some functions because they are called from > main() and from interrupt. I was trying __critical keyword but it seems to > be doing nothing. Does __critical work for PIC16 port? __critical is (still) a nop for PIC16. > If it doesn't, how do you do it? Yo

Re: [Sdcc-user] [sdcc-user] error during compiling the latest svn source ( 7304 )

2012-02-12 Thread Raphael Neider
Hi Gál, > make[3]: Entering directory `/home/zsolti/svn/sdcc/support/sdbinutils/bfd' > rm -f targmatch.h > sed -f ./targmatch.sed < ./config.bfd > targmatch.new > *** glibc detected *** sed: double free or corruption (!prev): 0x0811a070 *** You may have found a bug in sed ;-) You can try compili

[Sdcc-user] [PIC16] __critical working?

2012-02-12 Thread Diego Herranz
Hi! I need to disable interrupts for some functions because they are called from main() and from interrupt. I was trying __critical keyword but it seems to be doing nothing. Does __critical work for PIC16 port? If it doesn't, how do you do it? Thanks a lot. ---

[Sdcc-user] [sdcc-user] error during compiling the latest svn source ( 7304 )

2012-02-12 Thread Gál Zsolt
Hello, I check out the latest version of SDCC with svn and start to compile it. I got this message some minutes later: make[3]: Entering directory `/home/zsolti/svn/sdcc/support/sdbinutils/bfd' rm -f targmatch.h sed -f ./targmatch.sed < ./config.bfd > targmatch.new *** glibc detected *** sed: dou