David,
I made a separate package for MemoryAccess (Slang implementation of
sqMemoryAccess.h) and uploaded it to the VMMaker project on SqueakSource.
In the VMMaker project, VMMaker-dtl.110.mcz contains all prerequisites
for MemoryAccess-dtl.1.mcz.
Some support code patches are required to use this for Unix VM generation
(patches attached). See also http://wiki.squeak.org/squeak/6081 for an
overview that may be useful if merging into another VMMaker code base.
MemoryAccess makes no changes to generated VM code until it is enabled
("MemoryAccess enable"), so it can be safely loaded into an image and
used as needed.
I find that using MemoryAccess helps the C compiler find type casting
errors, and produces code that is easier to follow in a debugger. On my
computer, there is no performance difference between the MemoryAccess
slang versus CPP macros in sqMemoryAccess.h.
Dave