Skip to content

Instantly share code, notes, and snippets.

@awwaiid
Created June 14, 2014 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awwaiid/d3abbac44473a9db453b to your computer and use it in GitHub Desktop.
Save awwaiid/d3abbac44473a9db453b to your computer and use it in GitHub Desktop.
bytecode
awwaiid@totoro:~$ ruby -e 'puts RubyVM::InstructionSequence.compile("puts %w(hello world)").disasm'
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putself
0003 putstring "hello"
0005 putstring "world"
0007 newarray 2
0009 opt_send_simple <callinfo!mid:puts, argc:1, FCALL|ARGS_SKIP>
0011 leave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment