An hour and a half ago, Hendrik Boom wrote: > On Thu, Nov 18, 2010 at 10:06:34PM -0500, Eli Barzilay wrote: > > > > Right, this works assuming sane C, and IIRC, with small arrays it > > can expect the whole array to be on the stack. (But maybe the > > rules for structs are the same, so it works out by size only.) > > C defines that when an array is the actual parameter, the address of > it is passed instead. [...]
Yeah, sorry, I had things mixed up. > Of course, some compilers when functions with prototypes are called, > may do incredibly convoluted things instead to attain greater > efficiency. FFI would presumably have to match that complexity in > terms of hardware register hacking. That shouldn't be a problem for interface functions. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev