- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tried to increase the size of some arrays in COMMON, but when I compile the code I got many messages like this:
for_diags_intel.c:(.text+0x13aa): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /usr/local/intel/Composer/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libifcore.a(for_diags_intel.o)
What does it mean? how can I avoid it?
Thanks
GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try adding "-mcmodel medium" to your compile/link options. This is needed when you have static data that exceeds 2GB. As an alternative, consider using allocatable arrays rather than huge COMMONs.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try adding "-mcmodel medium" to your compile/link options. This is needed when you have static data that exceeds 2GB. As an alternative, consider using allocatable arrays rather than huge COMMONs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
the first method works.
GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible that this option disable the -traceback ? Should I use -g -O2 or -g -O0?
Thanks
GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, -mcmodel medium should have no effect on traceback. -g implies -O0.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page