[LLVMdev] A C function which accepts a large integer type?

Duncan Sands baldrick at free.fr
Sat May 4 07:50:11 PDT 2013


Hi edA-qa mort-ora-y,

On 04/05/13 16:37, edA-qa mort-ora-y wrote:
> On 04/05/13 13:51, Óscar Fuentes wrote:
>> What's wrong with passing the address of the integer?
>
> Yes, that idea came to me also shortly after pressing "Send". ;)
>
> I assume the data is simply ordered like a native integer. So on
> little-endian it is lowest byte first.

correct.  Things are a little more complicated if the integer size is not a
multiple of 8, but I don't think you are interested in this case.

Ciao, Duncan.




More information about the llvm-dev mailing list