- C for AIX Compiler Command:
"xlc" , “xlc_r” , "cc" , “cc_r”...
- VisualAge C++ Compiler : (副檔名必須為大寫 "C" ,eg: xxx.C)
"xlC" ,"xlC_r"
- XL Fortran for AIX :
"xlf" , "f77" , "xlf_r" , "xlf90"...
- MPI for C :
"mpcc" , "mpcc_r"
- MPI for C++ : (副檔名必須為大寫 "C" ,eg: xxx.C)
"mpCC" ,"mpCC_r"
- MPI for Fortran
"mpxlf" , "mpxlf90" , "mpxlf90_r"...
example :
Source file : run.C
Execute file : run.exe
mpCC -o run.exe run.C
Detail refer to
http://www.nersc.gov/vendor_docs/ibm/pe/am102mst02.html
- Compiler Options - Performance:
- Tyep of RS/6000 System : “–qarch=[architechture]”
-qarch=pwr2 (IBM power 2 chip) [ivy system] -qarch=pwr3 (IBM power 3 chip) [ivory system] -qarch=pwr4 (IBM power 4 chip, now the compiler version did not support yet) [imp system]
- Tuning for specific system : “-qtune=[implementation]”
-qtune= pwr2 (IBM power 2 chip) [ivy system] -qtune=pwr3 (IBM power 3 chip) [ivory system] -qtune=pwr4 (IBM power 4 chip, now the compiler version did not support yet) [imp system]
- Optimization Level ( -O,-O2, -O3, -O4 )
Deault : no optimization
- -O3 is desired setting
- Use –qstrict ( When –O3 –qhot ) to restrict semantic alteration
- -O4 implied –O3 –qhot –qipa (only for wall struct)
- Compiler Options – Data
- Default Data type are 32-bit
- REAL*4,Complex*8
- Integer*4
- Logical*4
- 64-bit Floation Poing Repersentation (-qrealsize=bytes)
- -qrealsize=8 for double precision (64-bit)
- 64-bit mode ( -q64 )
- Specify the maximum user data area ( -bmaxdata )
- In 32-bit mode, the default maximum user data area is 256MB.
- -bmaxdata:0x10000000 (default)
- -bmaxdata:0x80000000 (get eight 256MB segments, 2GB)
- Specify the maximum space for the program stack area
- For automatic data area
- -bmaxstack= to overcome soft limit on stack size
- Maximun allowed value is 256MB for 32-bit mode
More Detail XL Fortran info refer to http://www-3.ibm.com/software/ad/fortran/xlfortran/
More Detail C Language info refer to http://www-3.ibm.com/software/ad/vacpp/
|