Re: [q-lang-users] Bug? New 'where' syntax
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2007-05-26 06:00:12
|
John Cowan wrote: > Chicken has a small C program run at configuration time that figures > out which way the C stack grows. Then it's just a matter of preserving > the address of a local variable defined in main() in a global variable, > then adding or subtracting the maximum stack size (defined at config > time also; Chicken defaults to 128K) to it, and then occasionally > comparing the content of that variable with the address of some local > variable. Thanks, John, for the info, that sounds like it might just work! At least in threads under complete control of the interpreter. Otherwise, if eval() is called from a thread in a user program, it will be hard to predict the stack size, though. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |