Reference Guide for X86-64 Cpus
Total Page:16
File Type:pdf, Size:1020Kb
REFERENCE GUIDE FOR X86-64 CPUS Version 2019 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............................................................. 9 2.1. PGI Compiler Option Summary......................................................................... 9 2.1.1. Build-Related PGI Options........................................................................ 10 2.1.2. PGI Debug-Related Compiler Options...........................................................12 2.1.3. PGI Optimization-Related Compiler Options...................................................13 2.1.4. PGI Linking and Runtime-Related Compiler Options......................................... 13 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....................................................................................................21 2.2.12. -dryrun..............................................................................................22 2.2.13. -drystdinc.......................................................................................... 22 Reference Guide for x86-64 CPUs Version 2019 | ii 2.2.14. -E.................................................................................................... 23 2.2.15. -F.................................................................................................... 23 2.2.16. -fast................................................................................................. 24 2.2.17. -fastsse............................................................................................. 24 2.2.18. --flagcheck......................................................................................... 24 2.2.19. -flags................................................................................................25 2.2.20. -fpic.................................................................................................25 2.2.21. -fPIC.................................................................................................26 2.2.22. -g.................................................................................................... 26 2.2.23. -gopt................................................................................................ 27 2.2.24. -g77libs............................................................................................. 27 2.2.25. -help................................................................................................ 28 2.2.26. -I.....................................................................................................30 2.2.27. -i2, -i4, -i8.........................................................................................31 2.2.28. -K<flag>............................................................................................ 31 2.2.29. --keeplnk........................................................................................... 33 2.2.30. -L.................................................................................................... 33 2.2.31. -l<library>.......................................................................................... 34 2.2.32. -M....................................................................................................35 2.2.33. -m................................................................................................... 35 2.2.34. -m64................................................................................................ 35 2.2.35. -M<pgflag>......................................................................................... 36 2.2.36. -mcmodel=medium............................................................................... 42 2.2.37. -module <moduledir>............................................................................ 43 2.2.38. -mp..................................................................................................44 2.2.39. -noswitcherror.....................................................................................45 2.2.40. -O<level>........................................................................................... 45 2.2.41. -o.................................................................................................... 47 2.2.42. -pc...................................................................................................48 2.2.43. --pedantic.......................................................................................... 50 2.2.44. -pg...................................................................................................50 2.2.45. -pgc++libs.......................................................................................... 51 2.2.46. -pgf77libs...........................................................................................51 2.2.47. -pgf90libs...........................................................................................52 2.2.48. -R<directory>...................................................................................... 52 2.2.49. -r.................................................................................................... 53 2.2.50. -r4 and -r8.........................................................................................53 2.2.51. -rc................................................................................................... 54 2.2.52. -s.................................................................................................... 54 2.2.53. -S.................................................................................................... 55 2.2.54. -shared............................................................................................. 55 2.2.55. -show............................................................................................... 56 2.2.56. -silent...............................................................................................56 Reference Guide for x86-64 CPUs Version 2019 | iii 2.2.57. -soname............................................................................................ 57 2.2.58. -stack..............................................................................................