Domanda

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.

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top