Raul

Fantastic! i hope to give it a go again.

1)Is there a citation for the meaning of x vs i?

2)Is there a formula for header size depending on rank?

i suppose one could just try various 1 1 ... 1 3$3 arrays.

greg
~krsnadas.org

--

from: Raul Miller <[email protected]>
to: Programming forum <[email protected]>
date: 18 June 2013 03:55
subject: Re: [Jprogramming] calling jj.dll

It ought to be 2*28 (or 56) for J64.

Note that this will change, though, based on the rank of the array.

--

from: bill lam <[email protected]>
to: [email protected]
date: 17 June 2013 21:00
subject: Re: [Jprogramming] calling jj.dll

>Using "i" and it worked in J64 is purely by co-incidence, it will fail later 
>if not now.  For the box, it points to the structure A. the offset 28 which 
>pointer to ravelled data is for 32-bit. You have to find out the exact offset 
>for J64. This can be done by counting bytes in structure A or run a small C 
>program to print its member offset.

Or by trial and error for values from 28 to 60, say.  (untested)
--

from: greg heil <[email protected]>
to: Programming forum <[email protected]>
date: 17 June 2013 20:38
subject: Re: [Jprogramming] calling jj.dll

Bill

>i do not know, but Dave Mitchells scripts at 
>http://www.jsoftware.com/jwiki/Scripts/CallJ uses the x parameter and has the 
>same limitations ... except those scripts also lose the ability to handle 
>boxed and extended types on j32. The script i modified seems to work on j32, 
>j64 and j6 to j8 losing boxing and extendeds on 64b machines only.

greg
~krsnadas.org

--

from: bill lam <[email protected]>
to: [email protected]
date: 17 June 2013 19:49
subject: Re: [Jprogramming] calling jj.dll

>Most of those "i" inside prototype signature should changed to "x", eg

jinit=: 'j.dll JInit x' & cd
cmd=. 'j.dll JGetM i x *c *x *x *x *x'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to