what does "turning on/off reentrancy" actually do in this context?
-
-
Replying to @11rcombs
by default sdcc behaves as if all locals (parameters, too) are `static`. in fact it will overlap the storage of parameters of all leaf functions. you can turn that off and it uses stack as you'd expect
2 replies 0 retweets 12 likes -
Replying to @whitequark @11rcombs
Or you can use a PIC where there is no data stack at all and then if you still need reentrancy haha good luck you need to emulate the stack using a pointer somewhere and indirect accesses. But reentrancy would overflow the 8-level callstack anyway. 2-level on some PICs.
2 replies 0 retweets 7 likes -
or possibly relooper the code?
1 reply 0 retweets 0 likes -
at this point you could implement a VM for something sane in PIC assembly and just switch to programming that
2 replies 0 retweets 11 likes -
Like Brainfuck.
1 reply 1 retweet 6 likes -
avr emulator on pic? :trollface:
2 replies 0 retweets 4 likes -
Cursed PIC stories: the callstack is circular *and* there is no reset instruction (on PIC12), so I once implemented "panic and restart" from an IRQ handler by just jumping to the reset vector.
1 reply 0 retweets 9 likes -
This Tweet is unavailable.
-
you mean code that's 90% MOVFW/MOVWF opcodes by volume might not be the best architecture design?? (/s)
1 reply 0 retweets 4 likes
You mean MOVF f,W and MOVWF f. Because then there's the amazing MOVF f,F form. Which actually is just "set flags and trigger unwanted RMW side-effects on f".
-
-
ah, apparently MOVFW is an mpasm alias (and might be the form that ida pro outputs?)
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.