It seems abcl generates correct result on some ANSI tests,
but in actuality abcl fails. The way tests are written, it's hidden from the user.
Example:
disassemble.4
If one executes
(disassemble-it (eval '(function (lambda (x y) (cons x y)))))
as it's written then everything looks ok,
but
(disassemble (eval '(function (lambda (x y) (cons x y)))))
returns the following
; 'jad' is not recognized as an internal or external command, ; operable program or batch file. NIL
_________________________________________________________________ Windows Live™ Hotmail®: Search, add, and share the web’s latest sports videos. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_W...
On 7/28/09 12:42 AM, Peter Tsenter wrote: […]
(disassemble (eval '(function (lambda (x y) (cons x y)))))
returns the following
; 'jad' is not recognized as an internal or external command, ; operable program or batch file. NIL
ABCL depends on the presence of ['jad'][1] in its PATH to work, using the external binary to disassemble the Java bytecode. If one were officially keeping score for the ANSI tests, we might lose to the judges on whether we pass this test. This interaction should certainly be better documented.
[1]: http://www.varaneckas.com/jad
[Note to ABCL developers]
Perhaps we should attempt to default to using 'javap' if Jad is not found? The problem with this is that a JDK might not always be present, so this isn't a failproof solution either.
And 'jad' looks like it is eventually going to go away, as the author who never released the source, has stopped distributing binaries (the above link is to a "mirror").
(disassemble (eval '(function (lambda (x y) (cons x y)))))
After installing jad (I could not find it before, thank you for the link) this form produces disassembly.
But the form
(disassemble '(lambda (x y) (cons y x))) (see disassemble.3)
returns
; Disassembly is not available. NIL
with or without jad.
Why inconsistency?
Regarding javap one could check what's available: jad -> javap -> <warning>
_________________________________________________________________ Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_W...
armedbear-devel@common-lisp.net