p5-Compiler-CodeGenerator-LLVM icon indicating copy to clipboard operation
p5-Compiler-CodeGenerator-LLVM copied to clipboard

Escape sequence is output as it is

Open nyarla opened this issue 12 years ago • 0 comments

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.

nyarla avatar Oct 01 '13 10:10 nyarla