lua-users home
lua-l archive

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


On Tue, 4 Jan 2011, beo wulf wrote:
>
> I want to be able to, in lua, write assembly code,
> which the library then assembles, registers with the lua vm,
> which I can then call into.
>
> Are there any libraries that make this possible?

Perhaps you can use bits of DynASM to do this.
http://luajit.org/dynasm_features.html

> The goal here -- if I can do this, then I don't need to write most of
> my code in C++ and then do all this bridging -- I can even write the
> compute intensive parts in lua.

Write the compute-intensive parts in high-level Lua and run the code on
LuaJIT :-)

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.