[PicForth] Re: Another macro related issue- suspend/restore-interrupts vanishes when used in a macro word

Samuel Tardieu sam at rfc1149.net
Tue Nov 30 12:47:17 CET 2004


>>>>> "Alex" == Alex Holden <alex at linuxhacker.org> writes:

Alex> Note that test2 compiles to a simple jump to criticalsection
Alex> with no calls to suspend/restore-interrupts around it:

This one was a tricky one, but with a simple one-liner fix, which is
now included in my development version. If you define a word in
metacompiler mode (such as suspend-interrupts, which by default does
nothing) then define it later in target mode (include picisr.fs
redefines a new word called suspend-interrupts), then in macro mode
only the first one was seen as the metacompiler was favored over the
target.

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam



More information about the PicForth mailing list