I had problems for compiling and executing some big programs (stack size and "relocation truncated..." error messages, among others) and I solved it thanx to this forum.
I used the comands "ifort -O4 -mcmodel=large -shared-intel -o foo foo.f -lmkl -lguide -lg2c" and it was possible to compile and run my programs. And the best part is that the executable size was so small! I do not know which kind of machine was it, but the version of the compiler is 11.0.069
However, I have now a Mac OS X machine with a newer version 11.1.??? in which the instructions -mcmodel=large -shared-intel are not recognized.
So, I use the commands -i-dynamic and I also have to increase the stack size during copilation (instructions also taken from this forum). Eventhough I can compile and run my programs, the executables are much larger (like a hundred of times) than the ones I generated with -mcmodel=large...
So, can someone tell me how to use the -mcmodel=large -shared-intel commands in this newer version and/or how to get smaller executables with -i-dynamic???
Thank you in advance!