Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created December 17, 2014 09:56
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 lrytz/320b5f70f9034fed0349 to your computer and use it in GitHub Desktop.
Save lrytz/320b5f70f9034fed0349 to your computer and use it in GitHub Desktop.
lucmac:sandbox luc$ cat Test.scala
package p {
private class C
}
lucmac:sandbox luc$ qsc Test.scala
lucmac:sandbox luc$ asm p/C.class
lucmac:sandbox luc$ asm p/C.class && cat p/C.asm
// class version 50.0 (50)
// access flags 0x21
public class p/C {
@Lscala/reflect/ScalaSignature;(bytes="\u0006\u0001E1A!\u0001\u0002\u0005\u000b\u0009\u00091IC\u0001\u0004\u0003\u0005\u00018\u0001A\n\u0003\u0001\u0019\u0001\"a\u0002\u0006\u000e\u0003!Q\u0011!C\u0001\u0006g\u000e\u000cG.Y\u0005\u0003\u0017!\u0011a!\u00118z%\u00164\u0007\"B\u0007\u0001\u0009\u0003q\u0011A\u0002\u001fj]&$h\u0008F\u0001\u0010!\u0009\u0001\u0002!D\u0001\u0003\u0001")
ATTRIBUTE ScalaSig : unknown
// access flags 0x1
public <init>()V
ALOAD 0
INVOKESPECIAL java/lang/Object.<init> ()V
RETURN
MAXSTACK = 1
MAXLOCALS = 1
}
lucmac:sandbox luc$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment