funcall_dll in dll.cc crashes in x64
7k8m opened this issue · comments
Tomohito Nakayama commented
Again problem of x64 convention, it seems ...
Tomohito Nakayama commented
LISP next fails.
(labels ((c (name) (find-symbol name :c)))
(require "foreign")
(eval `(,(c "define-dll-entry")
,(c "double")
strtod (,(c "char*") (,(c "char*") *))
"msvcrt"))
(strtod (si:make-string-chunk "123") 0))
Tomohito Nakayama commented
Programmed asm code to handle x64 convention
9fca0f4
However, some more improvement might be needed ...
Tomohito Nakayama commented
Furthermore, implementing float and/or double parameter is not easy ....
Tomohito Nakayama commented
Drop support of float/double in argument of function in Dll is an option.