[LLVMdev] "long long" type in C backend

Jean-Daniel Dupas devlists at shadowlab.org
Mon Aug 11 13:39:26 PDT 2008


Le 11 août 08 à 22:29, Chris Lattner a écrit :

>
> On Aug 11, 2008, at 1:13 PM, Jonathan S. Shapiro wrote:
>
>> Delayed reaction. Chris's response that the emitted code relies on
>> long
>> long to be a 64-bit type just sunk in.
>>
>> Chris: is there some reason why the backend does not #include
>> <stdint.h>
>> and then emit [u]int64_t (and the other sized types as well) and also
>> [u]intptr_t?
>
> The CBE output can't #include standard headers, the macros and types
> that are defined in the headers will conflict.
>
> -Chris

Not to mention that this header is not present on all plateform, for  
example the one that use WORD and DWORD as common integer types does  
not provide a stdint file.






More information about the llvm-dev mailing list