Advertisement
melisgl

sbcl symbol addresses

Oct 8th, 2023
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.73 KB | None | 0 0
  1. CL-USER> (funcall
  2.           (compile nil
  3.                    (lambda ()
  4.                      (let ((a1 (sb-c::get-lisp-obj-address (make-array 0)))
  5.                            (s1 (sb-c::get-lisp-obj-address (make-symbol "x")))
  6.                            (a2 (sb-c::get-lisp-obj-address (make-array 2)))
  7.                            (s2 (sb-c::get-lisp-obj-address (make-symbol "x"))))
  8.                        (format t "a1: ~40B~%a2: ~40B~%s1: ~40B~%s2: ~40B~%"
  9.                                a1 a2 s1 s2)
  10.                        (values a1 a2 s1 s2)))))
  11. a1:    1000000001011001010010111011000101111
  12. a2:    1000000001011001010010111011000111111
  13. s1:    1000000001011010111011000001100011111
  14. s2:    1000000001011010111011000001101001111
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement