![]() |
Modern Arm Assembly Language Programming: Covers Armv8-A 32-bit, 64-bit,and SIMD 英語版 Daniel Kusswurm (著) ¥6,295 出版社 : Apress; 1st版 (2020/10/8) ISBN-10 : 1484262662 ISBN-13 : 978-1484262665本の情報: Amazon Japan Apress オンラインで読む: a-press (@gm.tsuda.ac.jp でログインすること) ソースコード: github 学内のみアクセス可: zipファイル  展開 |
本Webページの実行例は以下の環境で実行したものです。
この本の発行元から配布されているソースコードでは、アセンブリ言語のコードは *.s ファイルに
記述されています。
しかし、本Webページで公開しているコードでは、gcc の __asm()
関数を使って、
*.cpp ファイル内に記述するように書き直しています。
また、アセンブリ言語の命令コードも若干違いがあった(たとえばSIMD命令の.4sなどの指定方法)ので、
Apple M1 Mac で動作するように変更しています。
gcc -v の実行結果 |
nitta@arm64 % gcc -v Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.5 (clang-1205.0.22.11) Target: arm64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin |
as -v の実行結果 |
nitta@arm64 % as -v Apple clang version 12.0.5 (clang-1205.0.22.11) Target: arm64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple arm64-apple-macosx11.0.0 -filetype obj -main-file-name - -target-cpu apple-a12 -target-feature +v8.3a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +fullfp16 -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +sha2 -target-feature +aes -fdebug-compilation-dir /Users/nitta/my/arch/arm64/src.secret -dwarf-debug-producer "Apple clang version 12.0.5 (clang-1205.0.22.11)" -dwarf-version=4 -mrelocation-model pic -mllvm -disable-aligned-alloc-awareness=1 -o a.out - Control-D |