Generate LLVM code

Bug #690006 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Committed
Medium
Matt Giuca

Bug Description

There is currently no way to compile Mars code (either to a native executable or any other program format); it can only be interpreted. The program marsc (Mars compiler) is currently fairly useless; it just generates debugging output.

The marsc program should be able to produce LLVM bitcode files which could be interpreted with 'lli' or compiled to native code using 'llc'. LLVM (http://llvm.org/) is a generic low-level compiler infrastructure toolkit which has powerful optimisations built-in, and can generate native code for many platforms.

In addition, the mars program should be able to compile programs using LLVM and run them with the JIT framework, rather than using the current interpreter. This would allow programs run with 'mars' to run at the full speed of a compiled program, and also allow the LLVM backend to be tested using the Mars test framework (which runs programs through 'mars').

Related branches

Matt Giuca (mgiuca)
Changed in mars:
status: Triaged → In Progress
Matt Giuca (mgiuca)
tags: added: code-generation
removed: llvm
Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r1334.

Changed in mars:
status: In Progress → Fix Committed
Matt Giuca (mgiuca)
Changed in mars:
milestone: none → 1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.