Re: Adding assembler code to Lua programs

  • From: Ryan Gonzalez <rymg19@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 1 Mar 2014 09:46:33 -0600

This might be of interest: http://terralang.org/


On Sat, Mar 1, 2014 at 3:20 AM, Luke Gorrie <luke@xxxxxxxx> wrote:

> 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
>
>
>


-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
"It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated."

Other related posts: