>> I compiled successfully a code ported from gcc/linux that runs OK there. >> However, I'm getting stack underflow error when running it under Plan 9. > > that often happens when a function that returns double has no external > declaration in scope where it's used,
hang on: perhaps that only causes stack overflow. oh well, now you know not to do it in any case.
