Reference Guide for X86-64 Cpus
Total Page:16
File Type:pdf, Size:1020Kb
REFERENCE GUIDE FOR X86-64 CPUS Version 2017 TABLE OF CONTENTS Preface............................................................................................................. xi Audience Description.......................................................................................... xi Compatibility and Conformance to Standards............................................................ xi Organization....................................................................................................xii Hardware and Software Constraints...................................................................... xiii Conventions....................................................................................................xiii Terms............................................................................................................xiv Related Publications.......................................................................................... xv 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 77 Aggregate Data Type Extensions.................................................. 3 1.1.3. Fortran 90 Aggregate Data Types (Derived Types)............................................. 4 1.2. C and C++ Data Types................................................................................... 4 1.2.1. C and C++ Scalars................................................................................... 4 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++.............................................................. 8 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...................................................14 2.1.4. PGI Linking and Runtime-Related Compiler Options......................................... 14 2.2. C and C++ Compiler Options.......................................................................... 15 2.3. Generic PGI Compiler Options........................................................................ 17 2.3.1. -#..................................................................................................... 17 2.3.2. -###...................................................................................................17 2.3.3. -acc...................................................................................................18 2.3.4. -Bdynamic........................................................................................... 19 2.3.5. -Bstatic...............................................................................................20 2.3.6. -Bstatic_pgi..........................................................................................20 2.3.7. -byteswapio......................................................................................... 21 2.3.8. -C..................................................................................................... 22 2.3.9. -c......................................................................................................22 2.3.10. -d<arg>............................................................................................. 23 2.3.11. -D....................................................................................................24 2.3.12. -dryrun..............................................................................................25 Reference Guide for x86-64 CPUs Version 2017 | ii 2.3.13. -drystdinc.......................................................................................... 25 2.3.14. -E.................................................................................................... 26 2.3.15. -F.................................................................................................... 26 2.3.16. -fast................................................................................................. 27 2.3.17. -fastsse............................................................................................. 27 2.3.18. --flagcheck......................................................................................... 27 2.3.19. -flags................................................................................................28 2.3.20. -fpic.................................................................................................28 2.3.21. -fPIC.................................................................................................29 2.3.22. -g.................................................................................................... 29 2.3.23. -gopt................................................................................................ 30 2.3.24. -g77libs............................................................................................. 30 2.3.25. -help................................................................................................ 31 2.3.26. -I.....................................................................................................33 2.3.27. -i2, -i4, -i8.........................................................................................34 2.3.28. -K<flag>............................................................................................ 35 2.3.29. --keeplnk........................................................................................... 36 2.3.30. -L.................................................................................................... 37 2.3.31. -l<library>.......................................................................................... 37 2.3.32. -M....................................................................................................38 2.3.33. -m................................................................................................... 38 2.3.34. -m64................................................................................................ 39 2.3.35. -M<pgflag>......................................................................................... 39 2.3.36. -mcmodel=medium............................................................................... 45 2.3.37. -module <moduledir>............................................................................ 46 2.3.38. -mp..................................................................................................47 2.3.39. -noswitcherror.....................................................................................48 2.3.40. -O<level>........................................................................................... 49 2.3.41. -o.................................................................................................... 50 2.3.42. -pc...................................................................................................51 2.3.43. --pedantic.......................................................................................... 53 2.3.44. -pg...................................................................................................54 2.3.45. -pgc++libs.......................................................................................... 54 2.3.46. -pgf77libs...........................................................................................55 2.3.47. -pgf90libs...........................................................................................55 2.3.48. -R<directory>...................................................................................... 56 2.3.49. -r.................................................................................................... 56 2.3.50. -r4 and -r8.........................................................................................57 2.3.51. -rc................................................................................................... 57 2.3.52. -s.................................................................................................... 58 2.3.53. -S.................................................................................................... 58 2.3.54. -shared............................................................................................. 59 2.3.55. -show............................................................................................... 59 Reference Guide for x86-64 CPUs Version 2017 | iii 2.3.56. -silent...............................................................................................60 2.3.57. -soname...........................................................................................