Reference Guide for Openpower Cpus
Total Page:16
File Type:pdf, Size:1020Kb
REFERENCE GUIDE FOR OPENPOWER CPUS Version 2020 TABLE OF CONTENTS Preface............................................................................................................. ix Audience Description.......................................................................................... ix Compatibility and Conformance to Standards............................................................ ix Organization..................................................................................................... x Hardware and Software Constraints........................................................................ xi Conventions..................................................................................................... xi Terms............................................................................................................ xii Related Publications......................................................................................... xiii Chapter 1. Fortran, C, and C++ Data Types................................................................ 1 1.1. Fortran Data Types....................................................................................... 1 1.1.1. Fortran Scalars.......................................................................................1 1.1.2. FORTRAN real(2).....................................................................................3 1.1.3. FORTRAN Aggregate Data Type Extensions...................................................... 3 1.1.4. Fortran 90 Aggregate Data Types (Derived Types)............................................. 4 1.2. C and C++ Data Types................................................................................... 5 1.2.1. C and C++ Scalars................................................................................... 5 1.2.2. C and C++ Aggregate Data Types................................................................. 6 1.2.3. Class and Object Data Layout.....................................................................6 1.2.4. Aggregate Alignment................................................................................7 1.2.5. Bit-field Alignment.................................................................................. 8 1.2.6. Other Type Keywords in C and C++.............................................................. 9 Chapter 2. Command-Line Options Reference........................................................... 10 2.1. PGI Compiler Option Summary........................................................................10 2.1.1. Build-Related PGI Options........................................................................ 11 2.1.2. PGI Debug-Related Compiler Options...........................................................13 2.1.3. PGI Optimization-Related Compiler Options...................................................13 2.1.4. PGI Linking and Runtime-Related Compiler Options......................................... 14 2.2. Generic PGI Compiler Options........................................................................ 14 2.2.1. -#..................................................................................................... 14 2.2.2. -###...................................................................................................15 2.2.3. -acc...................................................................................................15 2.2.4. -Bdynamic........................................................................................... 16 2.2.5. -Bstatic...............................................................................................17 2.2.6. -Bstatic_pgi..........................................................................................17 2.2.7. -byteswapio......................................................................................... 18 2.2.8. -C..................................................................................................... 19 2.2.9. -c......................................................................................................19 2.2.10. -d<arg>............................................................................................. 20 2.2.11. -D....................................................................................................20 2.2.12. -dryrun..............................................................................................21 Reference Guide for OpenPOWER CPUs Version 2020 | ii 2.2.13. -drystdinc.......................................................................................... 22 2.2.14. -E.................................................................................................... 22 2.2.15. -F.................................................................................................... 23 2.2.16. -fast................................................................................................. 23 2.2.17. --flagcheck......................................................................................... 24 2.2.18. -flags................................................................................................24 2.2.19. -fpic.................................................................................................25 2.2.20. -fPIC.................................................................................................25 2.2.21. -g.................................................................................................... 25 2.2.22. -gopt................................................................................................ 26 2.2.23. -help................................................................................................ 27 2.2.24. -I.....................................................................................................28 2.2.25. -i2, -i4, -i8.........................................................................................29 2.2.26. -K<flag>............................................................................................ 30 2.2.27. -L.................................................................................................... 32 2.2.28. -l<library>.......................................................................................... 32 2.2.29. -M....................................................................................................33 2.2.30. -m................................................................................................... 33 2.2.31. -m64................................................................................................ 33 2.2.32. -M<pgflag>......................................................................................... 34 2.2.33. -module <moduledir>............................................................................ 39 2.2.34. -mp..................................................................................................40 2.2.35. -noswitcherror.....................................................................................41 2.2.36. -O<level>........................................................................................... 41 2.2.37. -o.................................................................................................... 43 2.2.38. --pedantic.......................................................................................... 44 2.2.39. -pg...................................................................................................44 2.2.40. -pgc++libs.......................................................................................... 45 2.2.41. -pgf90libs...........................................................................................45 2.2.42. -R<directory>...................................................................................... 46 2.2.43. -r.................................................................................................... 46 2.2.44. -r4 and -r8.........................................................................................47 2.2.45. -rc................................................................................................... 47 2.2.46. -s.................................................................................................... 48 2.2.47. -S.................................................................................................... 48 2.2.48. -shared............................................................................................. 49 2.2.49. -show............................................................................................... 49 2.2.50. -silent...............................................................................................50 2.2.51. -soname............................................................................................ 50 2.2.52. -ta................................................................................................... 51 2.2.53. -time................................................................................................ 53 2.2.54. -u.................................................................................................... 53 2.2.55. -U....................................................................................................54 Reference Guide for OpenPOWER CPUs Version 2020 | iii 2.2.56. -V[release_number].............................................................................. 54 2.2.57. -v...................................................................................................