chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Some allocation and object-passing tests


From: Category 5
Subject: Re: [Chicken-users] Some allocation and object-passing tests
Date: Wed, 12 Nov 2003 19:53:09 +0000
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (berkeley-unix)

Felix Winkelmann <address@hidden> writes:

> With these changes, your test-code works fine on my machine.

Ah!  My problem was in my (lack of) understanding of how C_gc_protect
works.  Now it makes more sense, and with your changes the test code
(original and modified versions) also runs fine for me, both in the
gc-protect and alloc-in-heap cases.

Unfortunately, in my real code, the dispatcher() function is opaque -
it's part of foreign library code that I'm trying to create bindings
for.  So I can't add C_gc_protect calls inside it.  Are there any
options left except for static memory or malloc?

Also, any idea why anything I compile with -O1 or -O2 on this platform
immediately dumps core on execution?  =)

Cheers!

-- 





reply via email to

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