<span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Thanks, Bagel and Erik!</span><br style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Your replies help me so much!</span><div>
<font color="#500050" face="arial, sans-serif"><br></font><br><div class="gmail_quote">2011/8/28 Erik de Castro Lopo <span dir="ltr"><<a href="mailto:mle%2Bcl@mega-nerd.com">mle+cl@mega-nerd.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><a href="mailto:geovanisouza92@gmail.com">geovanisouza92@gmail.com</a> wrote:<br>
<br>
> I'm trying create a new programming language, and I want that it have<br>
> Unicode support (support for read and manipulate rightly the source-code and<br>
> string literals).<br>
<br>
</div>LLVM IR iteself only supports one string ty, which is an array of<br>
i8 (8 bit integers). In your compile you can use utf-8 and any<br>
utf8 string literal can be stored in an i8 array in the LLVM IR.<br>
<br>
For example, the LLVM backend for the DDC compiler [0] does this:<br>
<br>
@str = internal constant [4 x i8] c"bar\00", align 8<br>
<br>
<br>
HTH,<br>
Erik<br>
<br>
[0] <a href="http://disciple.ouroborus.net/" target="_blank">http://disciple.ouroborus.net/</a><br>
<font color="#888888">--<br>
----------------------------------------------------------------------<br>
Erik de Castro Lopo<br>
<a href="http://www.mega-nerd.com/" target="_blank">http://www.mega-nerd.com/</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>@geovanisouza92 - Geovani de Souza</div><br>
</div>