문제

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