Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. let f () = "A" ;; print_endline @@ f ()
  2.  
  3. branch L2
  4. L1: const "A"
  5. return 1
  6. L2: closure L1, 0
  7. push
  8. const 0a
  9. push
  10. acc 1
  11. apply 1
  12. push
  13. getglobal Pervasives!
  14. getfield 30
  15. apply 1
  16. acc 0
  17. makeblock 1, 0
  18. pop 1
  19. setglobal Foo2!
  20.  
  21. -----------------------------------------------------------------------------------------------
  22.  
  23. print_endline @@ (fun () -> "A") ()
  24.  
  25. const 0a
  26. push
  27. const "A"
  28. pop 1
  29. push
  30. getglobal Pervasives!
  31. getfield 30
  32. apply 1
  33. makeblock 0, 0
  34. setglobal Foo3!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement