- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using the ia32 and intel64 compilers, version 11.1.059, on RHEL 5. Compiler parameters are-traceback-f77rtl -save -vms -align norecords -align dcommons -warn noalign -fpic -extend-source. The following source uses at least 5 cpu minutes to compile. I killed it at that point, so I don't know how long it would run. The combination of a structure member with initialization and the array size cause the problem. Is this a bug in the compiler, or is there something I can do other than changing the code?
program slowcomp
implicit none
structure /x/
character*8 xx/'init'/ !Problem line
end structure
record/x/ xx(100000) !Problem line
write (6,*) 'hw'
end program
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not a bug, per se, but the current design for data initialization has some cases where it can cause very long compile time, and this is one of them. I suggest replacing this with run-time initialization, like this:
program slowcomp
implicit none
structure /x/
character*8 xx
end structure
record/x/ xx(100000) !Problem line
xx = x('init')
write (6,*) xx(10)
end program
Improving this is on our list.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page