| Sounds like an interesting piece of work, comparable to the
amount of code in the LINKer.
Off the top of my head, I don't think there is an easy way. The
fixup sections need to be merged and you'd need to adjust the image
relative address of all the clusters in one of the images. If the base
image was linked to the sharable image, then you'd have to do all the
image fixups for the sharable image when you bundled them together and
remove the sharable image from the list of sharable images that
an image links against. I don't know where this info is stored.
Interesting piece of work. I'd be interested in seeing it
when you have it working. I certainly have a few sharable images
for you to play with :-).
KC
|
| The easiest way - still not easy! - might be to write a more general program:
One that would save the current memory image as an executable file. TOPS-10,
of course, provided such a facility as part of the OS, and I've used programs to
do the same thing on TOPS-20. (The one on TOPS-20 actually went out of its way
NOT to save pure pages from shareable images, so your EXE file would be small.
It was meant for things like saving away huge LISP programs that might take a
long time to initialize up to a given state that you would want to get back to
later.)
Such a program would be very handy to have around.
If writing an actual, complete image file is too complex, you could probably
use the facility that the AME uses to start up a "restart" program; then the
actual contents of the file could be anything convenient.
-- Jerry
|