Dynamic loading / vm extensions

Rodrigo Ventura yoda@isr.ist.utl.pt
Wed, 25 Mar 1998 16:26:58 +0100 (GMT+0100)


>>>>> "ecm" == Eric Marsden <emarsden@mail.dotcom.fr> writes:

    ecm> The dynamic loading code works with Linux approximately as documented
    ecm> in doc/external.txt. The two differences wrt the procedure given for
    ecm> SunOS are different flags to ld:

    ecm> 	ld -shared test.o -o test.so

    ecm> and a call such as (note the "./"; the full absolute path works too)

    ecm>         (external-call dynamic-load "./test.so")

    ecm> After a little playing around with the file test.c it seems that
    ecm> fixnums and vectors are recognized correctly (with the functions
    ecm> FIXNUMP() and VECTORP() respectively), while strings or floats are not
    ecm> recognized. The STRINGP() test fails, but forcing the extraction of
    ecm> the string's contents with STRING_REF and STRING_LENGTH works
    ecm> correctly.

        Yeah, I almost forgot that I did some playing around with
dyn-load on scheme48. What I did was a UDP sockets API to make scheme
communicate with SoccerServer. It would be cool to make a partial glue
to the UNIX syscalls.

        Regards,

-- 
--

*** Rodrigo Martins de Matos Ventura, alias <Yoda>
***  yoda@isr.ist.utl.pt, http://www.isr.ist.utl.pt/~yoda
***   Instituto de Sistemas e Robotica, Polo de Lisboa
***    Instituto Superior Tecnico, Lisboa, Portugal
***     PGP Public Key available on my homepage
*** Key fingerprint = 0C 0A 25 58 46 CF 14 99  CF 9C AF 9E 10 02 BB 2A