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] |
"Marisha Ray & Neil Jerram" <mpriz@dircon.co.uk> writes: > Two small questions... > 1. What are the limits on the current smob space, BTW? 256. > 2. Is there any way of implementing a truly portable alloca, where all the > memory is on the stack? Not really (it requires a bit of futzing around with stack frames and the like). I've put up an alloca for guile that uses smobs up at http://home.thezone.net/~gharvey/guile/scm_alloca.tar.gz This is a really quick hack, and doesn't have a nice way of adding it straight into guile yet, though... but it is short :) It just requires that you use a SCM for the alloca'd object, and access it with SCM_ALLOCA_DATA(obj). -- Greg