SBCL LISP-OBJ internals: Just for those, who did not found yet 0

Posted by yrashk

Thank you, #lisp folks, I’ve got basic understanding of how to do SAP to LISP-OBJ convertion in SBCL.

Here you are:

[syntax,lisp/lisp-obj-1.lisp,lisp] In case when you’re working with ALREADY allocated lisp object:

[syntax,lisp/lisp-obj-2.lisp,lisp]
It is important to understand that GET-LISP-OBJ-ADDRESS returns not an exact address of lispobj, but (LOGIOR address lowtag):

[syntax,lisp/lisp-obj-3.lisp,lisp]


In case when you're working with ALREADY allocated lisp object:

[syntax,lisp/lisp-obj-4.lisp,lisp] It is important to understand that GET-LISP-OBJ-ADDRESS returns not an exact address of lispobj, but (LOGIOR address lowtag):

[syntax,lisp/lisp-obj-5.lisp,lisp]