Handbook
Glossary
explode-struct ( src c-type -- vregs reps )
Vocabulary
compiler
.
cfg
.
builder
.
alien
.
boxing
Inputs
src
an
object
c-type
an
object
Outputs
vregs
an
object
reps
an
object
Definition
USING:
assocs
compiler.cfg.hats
kernel
sequences
;
IN:
compiler.cfg.builder.alien.boxing
::
explode-struct
( src c-type -- vregs reps )
c-type
flatten-struct-type
:>
reps reps
keys
dup
component-offsets
[|
rep offset | src offset rep
f
^^load-memory-imm
]
2map
reps
;