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.

有帮助吗?

解决方案

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.

其他提示

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:

  1. LIST-ALL-PACKAGES - figure out which packages are interesting.

  2. DO-EXTERNAL-SYMBOLS - figure out which symbols in the interesting packages are interesting.

  3. DISASSEMBLE or EXT:UNCOMPILE on those interesting symbols.

However, the easiest way is to contact your vendor. Remember, CLISP is distributed under the GNU GPL.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top