|
[Sponsors] |
October 20, 2004, 13:48 |
Windows EXE file and Linux
|
#1 |
Guest
Posts: n/a
|
Since I can't find a good solution for the "stack overflow" problem when I run my Fortran program in Windows enviroment. I turn to the Linux according to Steve's suggestion. Then I encounter new trouble. To be honest, I am almost a layman to the Linux system. I don't know how to run windows EXE files in the Linux enviroment. Who can help me? Many many thanks!!! Oh, steve, how to set the stack limit in linux? Could u please detail this?
|
|
October 20, 2004, 15:36 |
Re: Windows EXE file and Linux
|
#2 |
Guest
Posts: n/a
|
Generally speaking you can't run Windows executable under another operating system (this holds true for any operating system). With regards to your stack overflow problem, you might look and see if you are allocating memory for your variables off the heap or the stack. The heap space will be much larger and should be used when possible, but requires an explicit allocate (at least in F90) in the subroutine. Getting your variables out of the stack space may help with your stack overflow problem.
|
|
October 21, 2004, 10:14 |
Re: Windows EXE file and Linux
|
#3 |
Guest
Posts: n/a
|
I agree with what ag said. I thought that you could get data out of stack space by putting it in named commons. The other possibility is to "malloc" it (in c-speak) or do some dynamic allocation in f77 or f90. You can't run a window exe in linux. You need a linux compiler and you need to rebuild it.
|
|
October 22, 2004, 05:45 |
Re: Windows EXE file and Linux
|
#4 |
Guest
Posts: n/a
|
Stack problems in FORTRAN? Simply put, you need to force your variables to be on the heap rather than the stack. Any instance of a big array declared (without SAVE or COMMON) in a subroutine will cause stack problems in FORTRAN.
- Steve (a different one) |
|
October 22, 2004, 06:31 |
Re: Windows EXE file and Linux
|
#5 |
Guest
Posts: n/a
|
Great idea! I mmanage to solve this problem now. THANK YOU VERY MUCH!!!!!
By the way, in Linux, windows applications can be run. it provides a command named 'wine' which forms a mimic windows enviroment. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 10:50 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |
read unformatted file in windows and linux | autofly | Main CFD Forum | 7 | August 11, 2004 04:24 |