lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Jan 22, 2011 at 12:58 PM, David Given <dg@cowlark.com> wrote:
> - can someone point me at instructions on how to get LuaJIT to tell me
> what machine code it's producing for a given function?

The command-line option -jbc gives bytecodes of parsed functions.
-jdump=bimrs gives byetcode (b), IR (i), and machine code (m) of
traces, along with registers (r) and snapshots (s) (
http://luajit.org/running.html ).  Machine code is generated for
traces not functions.  See also my LuaJit page on the wiki and xref
the source.