This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gh_enter reconsidered


John Jannotti <jj@lcs.mit.edu> writes:

 > > If it's merely tedious to write the code for a dozen architectures,
 > > somehow I can't believe that it hasn't been done before.  Surely
 > > some other publicly available package must have had to do the same
 > > thing?  If it's not running fast enough, we could steal it....
 > 
 > Doesn't the Boehm conservative collector work in much the same way as
 > the guile collector?  My impression is that you just link it into you
 > C program, so it must be able to determine where the stack is.

Yes, the Boehm gc also needs the stack bottom & needs to know which
which way the stack grows.  It also includes configs/tests for a
large number of machines to get/check the stack base.

I was about to suggest snarfing up the code from there when I saw your
message.

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il