chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] reloading dso files


From: felix winkelmann
Subject: Re: [Chicken-users] reloading dso files
Date: Sat, 5 Feb 2005 12:23:12 +0100

On Sat, 5 Feb 2005 09:04:03 +1100, Mark Baily <address@hidden> wrote:
> 
> What I want to do is to dynamically change the definitions of the functions
> here, say change func2 to return i*i, and change scheme-func to return 10.
> Then recompile and reload like so..
> 
> csc -s test.scm functions.c -o test.o2
> (require "test.o2")
> 
> I find that the change to scheme functions is reflected but the change to
> C functions is not. Is there a way to get it to use the new C functions?
> (You can do this in Gambit-C).
> 

Can you show me the code you use for running this example in Gambit
(and the performed compiler invocations) ?

(Probably some dlopen hackery. Gambit seems to use RTLD_NOW for
dlopen, I will investigate...)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]