p5-Compiler-CodeGenerator-LLVM
p5-Compiler-CodeGenerator-LLVM copied to clipboard
Escape sequence is output as it is
I compiled this code to hello.ll with Compiler::CodeGenerator::LLVM.
#!/usr/bin/env perl
use strict;
use warnings;
print "Hello Perl on LLVM!\n";
But output of $ lli hello.ll is:
$ lli hello.ll
Hello Perl on LLVM!\n%
$
My written code is here: https://github.com/nyarla/perl-llvm-sample
Enviroments:
- OSX Mountain Lion 10.8.5
- LLVM is compiled with this command:
$ brew install https://raw.github.com/rhysd/homebrew/13dbf9d3af83297eec66eeee8e579d82ab598da2/Library/Formula/llvm.rb --HEAD --with-clang --with-libcxx --disable-assertions
- Compiler::(Lexer|Parser|CodeGenerator::LLVM) is installed from your git repository.