[LLVMdev] Smaller than 32-bit?

Alastair Lynn arplynn at gmail.com
Thu Mar 11 16:51:06 PST 2010


Hi Russell-

The PIC16 is an 8-bit target, and the msp430 is a 16-bit target. The rules about the largest supported integer no longer apply as much- for most operations, codegen can now handle arbitrary precision (exceptions: mul, udiv, urem, sdiv, srem). For those five, library calls should be emitted for big integers - best way to check if they're supported is to just try them :)

Alastair

On 11 Mar 2010, at 18:27, Russell Wallace wrote:

> Does LLVM support any target platforms on which the natural integer
> size/pointer size is smaller than 32 bits? For example, I noticed
> mention of PIC16, is that such a platform?
> 
> If so, does the usual rule about the largest supported integer being
> the size of two pointers still apply? So that on that platform you
> can't use 64-bit integers, but you can use 32-bit integers?
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list