#36 'critical' improvements

closed
Bernhard Held
None
5
2003-09-15
2003-09-03
No

Hi all,

Would it be possible to improve the behaviour of the
keyword critical so that it can be used recursively. My
solution would be to use this code on entry:

mov acc,1
jbc ea,00001$
clr acc
00001$:
push acc

And on exit:

pop acc
jnb acc.0,00002$
setb ea
00002$:

It would be even better if one could use this keyword
not only for functions but for any block of C code within
braces {}.

Since I'm not familiar with the SDCC sources, I hope
someone will pick this up and insert it into the code
generation process.

Maarten Brock

Discussion

  • Bernhard Held
    Bernhard Held
    2003-09-05

    Logged In: YES
    user_id=203539

    forwarded to sdcc-devel

     
  • Bernhard Held
    Bernhard Held
    2003-09-05

    • assigned_to: nobody --> bernhardheld
     
  • Bernhard Held
    Bernhard Held
    2003-09-15

    • status: open --> closed
     
  • Bernhard Held
    Bernhard Held
    2003-09-15

    Logged In: YES
    user_id=203539

    Fixed in
    mcs51/gen.c 1.175
    ds390/gen.c 1.199