Re: How dynasm works?

  • From: Bart Wiegmans <bartwiegmans@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 17 Jul 2015 12:25:31 +0200

Hi Heiher,

DynASM is a combination of a preprocessor and a library that can be used to
generate native bytecode at runtime. It is literally a dynamic assembler.
The preprocessor is written in lua and generates (from an input file
containing assembly statements) an array with native code interleaved with
assembly instructions and and output file with calls into the DynASM
library in place of the original assembly statements. The runtime library
contains a small number of routines, the most important of which are
dasm_put (which appends machine code segments), dasm_link (which resolves
inner labels and values), and dasm_encode, which generates the native
bytecode.

I hope this helps a bit.
Regards,
Bart Wiegmans

2015-07-17 4:55 GMT+02:00 Heiher <r@xxxxxx>:

I'm trying to mips64 (n64 abi) port, but I don't understand the design
of luajit, and studying it.
I just feel strange this implement, so ask it here. If you known,
please tell me. thanks!

On Fri, Jul 17, 2015 at 10:47 AM, Stephen Nichols
<snichols@xxxxxxxxxxxxx> wrote:
WTF?!

Sent from my iPhone

On Jul 16, 2015, at 9:43 PM, Heiher <r@xxxxxx> wrote:

Hi,

Looks dynasm is generated another style assembly code that
instructions in byte or long.
I think this is same as to stanard assembly code, why not? If
translate to readable assembly
code, It can help to debug.

--
Best regards!
Heiher
http://hev.cc





--
Best regards!
Heiher
http://hev.cc


Other related posts: