[cffi-devel] :pointer size on 64-bit OS's

Daniel Herring dherring at tentpost.com
Thu May 27 01:31:23 UTC 2010


On Thu, 27 May 2010, Luís Oliveira wrote:

> On Thu, May 27, 2010 at 1:06 AM, Luke Crook <luke at balooga.com> wrote:
>> So my question is, on SBCL/32-bit & CCL/32-bit, what is the expected size
>> of :pointer on a 64-bit OS?
>
> 32-bit. You can check it yourself with (cffi:foreign-type-size :pointer).

On my Slackware 13, 64-bit box,

#include <iostream>
int main(int, char**)
{
   std::cout << sizeof(void *) <<"\n";
   return 0;
}

prints "8".

- Daniel


More information about the cffi-devel mailing list