Adding assembler code to Lua programs

  • From: Luke Gorrie <luke@xxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 1 Mar 2014 10:20:19 +0100

Howdy!

I'm looking for a good way to add assembler code to a LuaJIT program.

Is there a convenient way to generate machine code directly from Lua and
call it? (Could DynASM be adapted to this use case in some good way?)

Otherwise, is DynASM the obvious choice? (The alternative being gas/nasm
but I'm not sure if they offer any advantages worth thinking about?)

Tips welcome!
-Luke

Other related posts: