You may get "interesting" symbols with (apropos ""), and the function names with WITH-PACKAGE-ITERATOR
and FBOUNDP
. But the source code is (probably) lost: try DISASSEMBLE on functions and see the information which is there.
How do you get code of a clisp memory image
-
13-01-2022 - |
Pergunta
I have got a memory image, that i can't find the source for and I want to get the code out of it again. What do i have to do to achieve that? I can obviously load the image, but then i'd need to guess the function names.
Solução
Outras dicas
In addition to DISASSEMBLE
, you might try EXT:UNCOMPILE
. Note, however, that it will only work on functions compiled in an interactive session (i.e., from REPL), not on those loaded from a compiled .fas
file.
So, the suggested procedure is:
LIST-ALL-PACKAGES
- figure out which packages are interesting.DO-EXTERNAL-SYMBOLS
- figure out which symbols in the interesting packages are interesting.DISASSEMBLE
orEXT:UNCOMPILE
on those interesting symbols.
However, the easiest way is to contact your vendor. Remember, CLISP is distributed under the GNU GPL.