CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Windows EXE file and Linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2004, 13:48
Default Windows EXE file and Linux
  #1
MING
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?
  Reply With Quote

Old   October 20, 2004, 15:36
Default Re: Windows EXE file and Linux
  #2
ag
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.
  Reply With Quote

Old   October 21, 2004, 10:14
Default Re: Windows EXE file and Linux
  #3
steve
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.
  Reply With Quote

Old   October 22, 2004, 05:45
Default Re: Windows EXE file and Linux
  #4
Steve
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)
  Reply With Quote

Old   October 22, 2004, 06:31
Default Re: Windows EXE file and Linux
  #5
MING
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.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:51.