Another full circle back to Lisp. Dumping a Lisp image file is much like you describe. (Just sayin'.)