Re: Phix : tip
- Posted by petelomax Feb 04, 2017
- 1267 views
Added.
In pttree.e, line 1220, after
global constant T_movd = 5100 tt_stringF("movd",T_movd)
add
global constant T_PHIX = 5116 tt_stringF("PHIX",T_PHIX)
(Watch out for messages such as "PHIX should be 5124(not 5116)")
In ptok.e, line 2448, after
elsif ttidx=T_BITS64 then thisflag = X64
add
elsif ttidx=T_PHIX then thisflag = 1
Compile phix (p -cp), or you can just run p p test.
test code:
ifdef PHIX then puts(1,"this is Phix\n") elsedef puts(1,"this is Eu\n") end ifdef
(works fine on eui 4.0.0)
I've also added this tip to the phix docs, thanks
Pete