[LLVMdev] 32 bit array size to malloc

Ryan M. Lefever lefever at crhc.uiuc.edu
Wed Jun 11 14:38:48 PDT 2008

In the C documentation on linux, malloc is defined to take a size 
parameter of type size_t.  On my 64-bit linux machine, size_t turns out 
to be a 64-bit type.  In LLVM, AllocationInst's require the array size 
passed to them to be a 32-bit type.  Is there a reason that LLVM's 
intermediate representation restricts the array size to be a 32-bit type?


More information about the llvm-dev mailing list