[Sdcc-user] __critical

2013-04-19 Thread forrester
__critical Yes, it must have. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Maarten Brock
Hi, > > Do we need to protect the prologue/epilogue? > > Not sure, probably not, though __critical attached to the function > probably would. For other targets the prologue and epilogue aren't protected either. The idea was to keep interrupts off as short as possible. But there is an RFE for i

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Raphael Neider
Hi, > tested my code with CRITICAL macro. The macro works (tested that) > but it did not solve my issue, but I'll make an other post about that. > > BTW there is a small typo in the macro you sketched, you cannot > have a non const initializer for the static var, so I modified it as > follows: > >

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Kustaa Nyholm
Hi, tested my code with CRITICAL macro. The macro works (tested that) but it did not solve my issue, but I'll make an other post about that. BTW there is a small typo in the macro you sketched, you cannot have a non const initializer for the static var, so I modified it as follows: #define CRITI

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Raphael Neider
Hi Kusti, > I'll test this later today. > > You wrote: "partially emulate" > > What do you mean by that, what __critical -functionality would > disabling all interrupt not emulate? Well, you cannot emulate void func(void) __critical { // something } using void func(void) { CRITICAL( //so

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Kustaa Nyholm
Thanks Rafael, I'll test this later today. You wrote: "partially emulate" What do you mean by that, what __critical -functionality would disabling all interrupt not emulate? Or are you talking abou things like using a 'return/break' statement inside disabled section in which case of course the

Re: [Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Raphael Neider
Hi, > But when I look at the compiled (assembler source code) I see no > difference with or without the __critical keyword nor any evidence > of any interrupt disabling code. > > So what am I doing wrong? Errr, nothing: __critical is not implemented for the PIC ports. You can partially emulate it

[Sdcc-user] __critical does nothing with PIC18F4550 ?

2009-01-20 Thread Kustaa Nyholm
Hi, when debugging my mysterious behaviour (discussed here on this list in the past few days) I discovered that __critical does not change anything in my code. So protecting my function that sets up some critical parameters for my interrupt code with __critical does not function. I' doing it as