Next: objects codes reloc foreign, Up: objects codes reloc [Index]
These records are composed of 2 words: the second word contains a tagged pointer to a Scheme object. When these records are processed: the tagged pointer is stored into the target word in the data area of the subject code object.
meta data data area |.........|..........................| s_code p_data v v |---------|--------------|---|-------| code object |..............|...|target word ------->displacement ^ | | | ------------------ | | |----|----| vanilla object record 1st 2nd
Records of this type are used when the code object uses a generic Scheme object. Some notable examples:
(define (doit) '(1 2 3))
contains a reference to the list (1 2 3)
in its relocation
vector.
(define (doit x) (display x))
contains a reference to the storage location gensym of display
in
its relocation vector.