[Jprogramming] calling machine code from J?

2015-04-29 Thread Raul Miller
trivial=:3 :0 ret=. 195{a. addr=. 15!:3#ret ret 15!:2 addr,0,(#ret),2 r=. ('0 ',(":addr),' >+i i') 15!:0 y 15!:4 addr r ) Conceptually, on 32 bit J running under windows, this should be an identity function with a domain restricted to a single 32 bit integer. Instead, what happens is

Re: [Jprogramming] calling machine code from J?

2015-04-29 Thread bill lam
If 15!:0 did not return a domain error, then it is OK. That said, most computers have protection that prevent execution of arbitary memory address. You may need to disable that protection bit first. Чт, 30 апр 2015, Raul Miller написал(а): > trivial=:3 :0 > ret=. 195{a. > addr=. 15!:3#ret >