Taille tableau vs option compilateur
Bonjour,
je travaille sous fedora12, avec GNU Fortran (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)
sur une machine 64 bits ayant 4G de RAM.
J'ai un programme ecrit en Fortran 77 qui tourne tres bien pour des tableaux reduits, mais des que j'en augmente la taille, il se passe cela:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
gfortran test.for -o test.exe
/tmp/ccbF3d7k.o: In function `MAIN__':
test.for:(.text+0x556): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x55f): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x703): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x739): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x7bd): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x83b): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x867): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x8aa): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x8d7): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x8f3): relocation truncated to fit: R_X86_64_32S against `.bss'
test.for:(.text+0x904): additional relocation overflows omitted from the output |
En parcourant un peu les forums, j'ai vu qu'il pouvait exister une option de gfortran conduisant a:
Code:
1 2 3 4
|
gfortran -mcmodel=medium test.for -o test.exe -lpgplot -lX11
[ishtar CVC]$ ./test.exe
Processus arrêté |
Comme on peut le voir, le programme compile sans probleme mais... ne fait rien!
Je voulais savoir s'il etait possible d'avoir acces a d'autres options permettant la manipulations de tableaux 150000x150000xReal8 avec ma petite RAM...
Merci beaucoup de votre aide, cordialement, Philippe.