LIR compiler: Difference between revisions
Jump to navigation
Jump to search
m (→Open issues: fmt tweak) |
No edit summary |
||
| Line 1: | Line 1: | ||
A project to write a Nanojit-based tool that reads a file containing Nanojit LIR instructions and spits out a | A project to write a Nanojit-based tool that reads a file containing Nanojit LIR instructions and spits out the binary code to a file so it can be disassembled or executed. | ||
Contacts: paritosh1010 and Jason Orendorff (jorendorff at mozilla dot com) | Contacts: paritosh1010 and Jason Orendorff (jorendorff at mozilla dot com) | ||
Revision as of 17:34, 4 February 2009
A project to write a Nanojit-based tool that reads a file containing Nanojit LIR instructions and spits out the binary code to a file so it can be disassembled or executed.
Contacts: paritosh1010 and Jason Orendorff (jorendorff at mozilla dot com)
Goal 0
Write, compile and link a small C++ program with the Nanojit library.
Goal 1
Get a program to successfully feed this input to a nanojit::LirWriter.
start two = int 2 twoPlusTwo = add two, two ret twoPlusTwo
Open issues
- Need stub code (or docs) for pieces of Nanojit that are provided by the application, like
MMgcandVerboseWriter::formatGuard. - jorendorff doesn't understand guards well enough. Need to figure out what side exits should actually do.
- If this tool is to be used cross-platform for testing, it would really help to be able to say
x = ld p[6 * sizeof intptr_t] - Many opcodes are not well understood, e.g.
jiandxi.