[LLVMdev] 16 bit integers

Sanjiv Gupta llvmdev at gmail.com
Tue Mar 25 03:45:57 PDT 2008


I was able to build and play with clang today.
Clang also promotes integer arithmetic to 32-bit.

Any pointers on how to tweak it so that it generate i16 for "int" and also
promote int operations to 16-bit operations only?

Thanks,
Sanjiv

On 3/20/08, Chris Lattner <sabre at nondot.org> wrote:
>
> On Wed, 19 Mar 2008, Duncan Sands wrote:
> >> How can I build the front-end to generate 16-bit integers?
> >
> > Please clarify your question.
> > If you are asking how to build llvm-gcc for a 16 bit target,
> > I think the answer is: (1) gcc itself doesn't support 16 bit
> > targets; (2) llvm doesn't currently support any 16 bit targets
> > (but could with a little work).  So you are out of luck unless
> > you are willing to work on it.
>
> Note that if you only care about C/ObjC (not C++, fortran, ada, etc) that
> clang may be a good option for you.
>
> -Chris
>
> --
> http://nondot.org/sabre/
> http://llvm.org/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080325/3c2646a5/attachment.html>


More information about the llvm-dev mailing list