Khat Harr §á§Ú§ã§Ñ§Ý 20.12.2011 08:23: > I'll give it another go round with those, but I think I tried that > before. If I remember correctly I had some kind of compiler problems > with RUBY_INIT_STACK. All of the embedding discussions I've seen > poking > around google didn't mention it so I figured it wasn't used in > embedding. Anyway, I'll try messing with that again. :) > > Any further advice would be welcome, as I mentioned I have to collect > this information and then go back home and tinker with it away from > the > internet, so I'd really like to get as much advice as possible before > returning to the secret-lab/stinky-bachelor-pad. You can see the workaround for RUBY_INIT_STACK I have in ColdRuby which allows it to be run not only in the stackframes directly under the one used to call ruby_init() here: [1]. You're specifically interested in lines 30[2] (definition), 57[3] (initialization) and 163[4] (invocation). 1: https://github.com/whitequark/coldruby/blob/master/libcoldruby/MRIRubyCompiler.cpp 2: https://github.com/whitequark/coldruby/blob/master/libcoldruby/MRIRubyCompiler.cpp#L30 3: https://github.com/whitequark/coldruby/blob/master/libcoldruby/MRIRubyCompiler.cpp#L57 4: https://github.com/whitequark/coldruby/blob/master/libcoldruby/MRIRubyCompiler.cpp#L163 -- WBR, Peter Zotov.