Having to raise the stack allocation for a test case that is really rather modest brings up other questions for me:
Intel c compiler stack overflow pro#
This is a very large and complex application (my company's main product, Igor Pro see if you're interested). I set the stack space to 4 MBytes and now my test case works. In Visual Studio.Net, under the Fortran properties, External Procedures section, Calling Convention is set to C,Reference, Name Case Interpretation is Lower Case, Append Underscore is set to Yes, Generate Interface Blocks is set to No. I am using an evaluation copy of Intel Visual Fortran. The Intel Fortran 9 release notes having nothing that I can find on the topic. I found something that said I should increase the stack space, and to refer to the compiler release notes to find out how. I tried to find some information about this in the Intel Fortran documentation. The code stops in an assembly-language routine chkstk.asm. I presume this is because one of the first things it does is to copy some arrays into local arrays (allocated on the stack?). The code even works!īut I tried a somewhat larger problem on the code and it failed with a stack overflow upon calling into the Fortran code.
I have successfully compiled a static library from some Fortran source and I have linked it with my C/C++ application, all in Visual.