- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have successfully compiled a static library from some Fortran source and I have linked it with my C/C++ application, all in Visual Studio.net. The code even works!
But I tried a somewhat larger problem on the code and it failed with a stack overflow upon calling into the Fortran code. 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 stops in an assembly-language routine chkstk.asm.
I tried to find some information about this in the Intel Fortran documentation. I found something that said I should increase the stack space, and to refer to the compiler release notes to find out how. The Intel Fortran 9 release notes having nothing that I can find on the topic.
Is that, in fact, what I need to do?
How do I do it?
I am using an evaluation copy of Intel Visual Fortran, 9.0.2945.2003.
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.
Thanks!!!
But I tried a somewhat larger problem on the code and it failed with a stack overflow upon calling into the Fortran code. 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 stops in an assembly-language routine chkstk.asm.
I tried to find some information about this in the Intel Fortran documentation. I found something that said I should increase the stack space, and to refer to the compiler release notes to find out how. The Intel Fortran 9 release notes having nothing that I can find on the topic.
Is that, in fact, what I need to do?
How do I do it?
I am using an evaluation copy of Intel Visual Fortran, 9.0.2945.2003.
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.
Thanks!!!
Link Copied
- « Previous
-
- 1
- 2
- Next »
21 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK- I've gone through the code and (painfully) replaced all the calls to RESHAPE with explicit copies to ALLOCATABLE arrays having the required rank. I've done a problem with a million points and I am now trying 4 million.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »