Skip to content

Instantly share code, notes, and snippets.

@shyouhei
Created January 17, 2017 07:33
Show Gist options
  • Select an option

  • Save shyouhei/b42794b4f3033ca10dc1f456107023c9 to your computer and use it in GitHub Desktop.

Select an option

Save shyouhei/b42794b4f3033ca10dc1f456107023c9 to your computer and use it in GitHub Desktop.
zsh % ./miniruby --dump=insns -ve '$~ = 1234'
ruby 2.5.0dev (2017-01-17) [x86_64-darwin15]
== disasm: #<ISeq:<main>@-e>============================================
0000 trace 1 ( 1)
0002 putobject 1234
0004 dup
0005 setglobal $~
0007 leave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment