Message from discussion
passing uint64_t integer to a function that takes uint64_t converts it to 32 bit
Received: by 10.66.78.170 with SMTP id c10mr3190402pax.22.1349626251224;
Sun, 07 Oct 2012 09:10:51 -0700 (PDT)
X-BeenThere: python-cffi@googlegroups.com
Received: by 10.68.225.39 with SMTP id rh7ls20306806pbc.7.gmail; Sun, 07 Oct
2012 09:10:50 -0700 (PDT)
Received: by 10.68.219.198 with SMTP id pq6mr4170227pbc.0.1349626250820;
Sun, 07 Oct 2012 09:10:50 -0700 (PDT)
Date: Sun, 7 Oct 2012 09:10:49 -0700 (PDT)
From: Sarvi Shanmugham <sarvil...@gmail.com>
To: python-cffi@googlegroups.com
Message-Id: <f19f206c-6a92-4b48-8a1a-5c84a6f70f3e@googlegroups.com>
In-Reply-To: <CAMSv6X1U+oCwL77DhBaYXJD4JzeGmAf30sb0m5LXL=F=YG2D6w@mail.gmail.com>
References: <06cc3442-452d-493b-a06b-6eb039bb407f@googlegroups.com>
<CAMSv6X1quSzE-A7zRJUU92eK2b==N7TOmLhmYxPC+-ncEn_ACw@mail.gmail.com>
<c296b987-99f5-4e07-91d2-8e51bc8f9f61@googlegroups.com> <45ff71c7-5ec4-4e08-9fce-ad9b5e66ed79@googlegroups.com>
<83213abf-3981-4b9f-89db-f553a2d6b7c5@googlegroups.com> <5dcb95ee-53bf-497a-b3d2-c9bcba27ba88@googlegroups.com>
<CAMSv6X1U+oCwL77DhBaYXJD4JzeGmAf30sb0m5LXL=F=YG2D6w@mail.gmail.com>
Subject: Re: [python-cffi] passing uint64_t integer to a function that takes
uint64_t converts it to 32 bit
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_713_24112289.1349626249920"
------=_Part_713_24112289.1349626249920
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Yes. I am using the _cffi_backend built for the build host during the compilation.
Which is why a test load of the shared so cross built for the target host generates trace back that I have to ignore cross builds.
We are compiling some 12 other python extensions without any emulators the same way I am compiling these cffi extensions.
I can't find anything through google on autoconf and emulations for cross compilation.
And we don't use it for any of the more then 100 or some components that we cross compile.
May be I don't understand the issue with data types and sizes
http://en.wikipedia.org/wiki/C_data_types
From what I can tell, int, long sizes vary with platforms. If you really want fixed length data types it looks like you need to use intN_t from stdint.h. And considering that cffi has basic data types thare infact intN_t, shouldn't that be the right choice?
Sarvi
------=_Part_713_24112289.1349626249920--