Advertisement
teknoraver

arm64 gcc vs clang

Dec 5th, 2020 (edited)
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. root@macchiatobin:~/src/benchs# uname -a
  2. Linux macchiatobin 5.9.11-matteo #4 SMP Sat Dec 5 18:23:22 CET 2020 aarch64 GNU/Linux
  3.  
  4. root@macchiatobin:~/src/benchs# gcc -v
  5. Using built-in specs.
  6. COLLECT_GCC=gcc
  7. COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/10/lto-wrapper
  8. Target: aarch64-linux-gnu
  9. Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.0-23' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
  10. Thread model: posix
  11. Supported LTO compression algorithms: zlib zstd
  12. gcc version 10.2.0 (Debian 10.2.0-23)
  13.  
  14. root@macchiatobin:~/src/benchs# clang -v
  15. Debian clang version 11.0.0-5+b1
  16. Target: aarch64-unknown-linux-gnu
  17. Thread model: posix
  18. InstalledDir: /usr/bin
  19. Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/10
  20. Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/10
  21. Selected GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/10
  22. Candidate multilib: .;@m64
  23. Selected multilib: .;@m64
  24.  
  25. root@macchiatobin:~/src/benchs# make run CC=gcc
  26. gcc -pipe -O3 -Wall -mcpu=cortex-a72 -c -o dry.o dry.c
  27. gcc -pipe -O3 -Wall -mcpu=cortex-a72 -c -o dry2.o dry2.c
  28. gcc dry.o dry2.o -o dry
  29. gcc -pipe -O3 -Wall -mcpu=cortex-a72 flops.c -o flops
  30. ./dry 2>/dev/null
  31. Dhrystone Benchmark, Version C, Version 2.3
  32. Program compiled without 'register' attribute
  33. Using clock_gettime(), HZ=1000
  34.  
  35. Running 1 thread(s)
  36.  
  37. Microseconds for one run through Dhrystone: 0.0
  38. Dhrystones per Second: 20193860
  39. ./flops
  40.  
  41. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  42.  
  43. Module Error RunTime MFLOPS
  44. (usec)
  45. 1 4.0146e-13 0.0080 1749.5981
  46. 2 -1.4166e-13 0.0061 1142.5963
  47. 3 4.7184e-14 0.0074 2287.9728
  48. 4 -1.2546e-13 0.0079 1895.2186
  49. 5 -1.3800e-13 0.0147 1968.2602
  50. 6 3.2374e-13 0.0128 2270.7440
  51. 7 -8.4583e-11 0.0240 499.8896
  52. 8 3.4855e-13 0.0143 2096.9716
  53.  
  54. Iterations = 512000000
  55. NullTime (usec) = 0.0000
  56. MFLOPS(1) = 1366.1866
  57. MFLOPS(2) = 1034.9090
  58. MFLOPS(3) = 1637.4457
  59. MFLOPS(4) = 2145.0981
  60.  
  61. root@macchiatobin:~/src/benchs# make run CC=clang
  62. clang -pipe -O3 -Wall -mcpu=cortex-a72 -c -o dry.o dry.c
  63. clang -pipe -O3 -Wall -mcpu=cortex-a72 -c -o dry2.o dry2.c
  64. clang dry.o dry2.o -o dry
  65. clang -pipe -O3 -Wall -mcpu=cortex-a72 flops.c -o flops
  66. ./dry 2>/dev/null
  67. Dhrystone Benchmark, Version C, Version 2.3
  68. Program compiled without 'register' attribute
  69. Using clock_gettime(), HZ=1000
  70.  
  71. Running 1 thread(s)
  72.  
  73. Microseconds for one run through Dhrystone: 0.1
  74. Dhrystones per Second: 15028554
  75. ./flops
  76.  
  77. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  78.  
  79. Module Error RunTime MFLOPS
  80. (usec)
  81. 1 4.0146e-13 0.0080 1749.5972
  82. 2 -1.4166e-13 0.0065 1076.6778
  83. 3 4.7184e-14 0.0132 1289.9074
  84. 4 -1.2557e-13 0.0130 1152.0730
  85. 5 -1.3800e-13 0.0230 1262.6973
  86. 6 3.2380e-13 0.0207 1400.6490
  87. 7 -8.4583e-11 0.0240 499.8874
  88. 8 3.4867e-13 0.0220 1363.6914
  89.  
  90. Iterations = 512000000
  91. NullTime (usec) = 0.0000
  92. MFLOPS(1) = 1138.1883
  93. MFLOPS(2) = 874.0951
  94. MFLOPS(3) = 1178.5884
  95. MFLOPS(4) = 1320.6963
  96.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement