- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, there,
I'm trying to compile in Compaq Visual Fortran (V6) an old (F77) code which requires quite a lot of memory. It worked fine on Unix machines. And, I always got same errorassociated witha few arrays, "A common block or variable may not exceed 2147483647 bytes". Is there anyway I can set the limit to something larger?
Thank you very much for your kind help!
JZ
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Um, buy an Itanium system? That's 2GB, which is the limit of process address space in 32-bit Windows. Your UNIX system may have been a 64-bit system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Steve. Your explain made sense to me. Yes, the Unix are 64-bit machines. Maybe another alternative is to upgrade the code to F90/F95, which can do dynamic allocation.Is there a limit associated with that too?
Thanks.
JZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same limit. 32-bit Windows does not allow you to address more than 2GB of data. How big do you need it to be? Some Windows variants can be configured to expand that to 3GB, but you'd then have to use dynamic allocation and I couldn't guarantee that it would work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see. That's too bad. The actualsize of the array will vary with the problems we are trying to solve. So, we usually give a definitely big enough size in the code. Guess we will have to find another solver or something.
Thank you very much for your help!
JZ

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