Adriaan:
In other words, stack usage is not excessive.
Thank you for your attention. Using the same test program you tried, I get the same result on MacOS, except I get a message
"warning no -stack_addr specified using the default addr: 0xc0000000".
which appears to be harmless.
Please post a complete test program with instructions to reproduce the problem. Doing so will also help you solve problem yourself.
That's good advice. I find that I cannot reproduce the problem in my code using a recursive test procedure. I conclude that I have been wrong all along in my assumption that deep recursion was causing my code to crash. I will look for another cause.
Jay:
You can use "gdb" to look at the first few instructions
That sounds useful. Thank you for the test you ran on Windows.
Yours, Kevan