Issue #34 new

cffi has trouble with data type sizes in a cross compilation environment

Sarvi Shanmugham
created an issue

The current CFFI version has trouble with sizes of primitive data types in a cross compile environment. The sizes of primitive data types are coming primarily from 2 functions defined in the _c_backend.c

Namely, the sizeof() and nonstandard_integer_types() defined the _c_backend.c

Comments (8)

  1. Sarvi Shanmugham reporter

    A proposed solution based on an email thread documented in the cffi google groups is to use the cross_compile procedure to attempt snippets of C code that can confirm the size of a data type.

    I have a created a patch based on the suggested approach for your consideration. Please let me know if this is acceptable

  2. Log in to comment