Basic pointer types and c strings are now working!

    :::felix
    type char = "%i8";
    typedef charp = &char;    
    proc puts : charp = "puts";

    puts c"Hello world!";

Generates:

    :::llvm
    @0 = internal global [13 x i8] c"Hello world!\00" ; <[13 x i8]*> [#uses=1]
    
    declare void @puts(i8*)
    
    define void @1() {
    entry:
      call void @puts(i8* getelementptr inbounds ([13 x i8]* @0, i32 0, i32 0))
      ret void
    }
    
And prints out:

    Hello World!

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to