るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.113秒)
トップページ > クエリ:I[x] > クエリ:RI[x] > クエリ:compile[x] > クエリ:disassemble[x]

別のキーワード

  1. ri initialize
  2. ri generate
  3. ri description
  4. rdoc/generator/ri ri
  5. docmanager install_ri

ライブラリ

検索結果

RubyVM::InstructionSequence#disassemble -> String (21307.0)

self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。

...ubyVM::InstructionSequence.compile('1 + 2').disasm

出力:

== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>...
...0008 leave

@see RubyVM::InstructionSequence.disasm...

RubyVM::InstructionSequence#disasm -> String (6207.0)

self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。

...ubyVM::InstructionSequence.compile('1 + 2').disasm

出力:

== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>...
...0008 leave

@see RubyVM::InstructionSequence.disasm...