[Jprogramming] calling jj.dll
Raul Miller
rauldmiller at gmail.com
Wed Jun 19 21:15:24 UTC 2013
On Tue, Jun 18, 2013 at 9:07 AM, greg heil <gheil.j at gmail.com> wrote:
> 1)Is there a citation for the meaning of x vs i?
http://www.jsoftware.com/help/user/call_procedure.htm
> 2)Is there a formula for header size depending on rank?
https://github.com/openj/core/blob/master/jtype.h#L41 says:
typedef struct {I k,flag,m,t,c,n,r,s[1];}* A;
and
+/','='k,flag,m,t,c,n,r,s'
7
So, expressed in C, it's (7+rank)*sizeof I
(Because counting commas ignores the s, which is the shape of the
array. The number of elements in the shape is the rank of the array.)
And, of course, sizeof I is 4 on a 32 bit machine and 8 on a 64 bit machine.
FYI,
--
Raul
More information about the Programming
mailing list