没有合适的资源?快使用搜索试试~ 我知道了~
现代汇编语言ARMv8
资源推荐
资源详情
资源评论
Modern Arm
Assembly
Language
Programming
Covers Armv8-A 32-bit, 64-bit, and SIMD
—
Daniel Kusswurm
Modern Arm Assembly
Language Programming
Covers Armv8-A 32-bit, 64-bit, and SIMD
DanielKusswurm
Modern Arm Assembly Language Programming: Covers Armv8-A 32-bit, 64-bit,
and SIMD
ISBN-13 (pbk): 978-1-4842-6266-5 ISBN-13 (electronic): 978-1-4842-6267-2
https://doi.org/10.1007/978-1-4842-6267-2
Copyright © 2020 by Daniel Kusswurm
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Steve Anglin
Development Editor: Matthew Moodie
Coordinating Editor: Mark Powers
Cover designed by eStudioCalamar
Cover image by Veeterzy on Unsplash (www.unsplash.com)
Distributed to the book trade worldwide by Apress Media, LLC, 1 New York Plaza, New York, NY 10004,
U.S.A. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit
www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer
Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail booktranslations@springernature.com; for reprint,
paperback, or audio rights, please e-mail bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/9781484262665. For more
detailed information, please visit http://www.apress.com/source-code.
Printed on acid-free paper
DanielKusswurm
Geneva, IL, USA
iii
■Chapter 1: Armv8-32 Architecture ������������������������������������������������������������������������ 1
Armv8 Overview ��������������������������������������������������������������������������������������������������������������� 1
Data Types ������������������������������������������������������������������������������������������������������������������������ 2
Fundamental Data Types ������������������������������������������������������������������������������������������������������������������������ 2
Numerical Data Types ����������������������������������������������������������������������������������������������������������������������������� 5
SIMD Data Types ������������������������������������������������������������������������������������������������������������������������������������� 5
Internal Architecture ��������������������������������������������������������������������������������������������������������� 6
General-Purpose Registers ���������������������������������������������������������������������������������������������������������������������7
Application Program Status Register ������������������������������������������������������������������������������������������������������ 7
Floating-Point and SIMD Registers ��������������������������������������������������������������������������������������������������������� 8
Instruction Set Overview �������������������������������������������������������������������������������������������������� 8
Instruction Operands ������������������������������������������������������������������������������������������������������������������������������9
Memory Addressing Modes �������������������������������������������������������������������������������������������������������������������� 9
Summary ������������������������������������������������������������������������������������������������������������������������ 10
■Chapter 2: Armv8-32 Core Programming – Part 1 ���������������������������������������������� 13
Integer Arithmetic ����������������������������������������������������������������������������������������������������������� 13
Addition and Subtraction ���������������������������������������������������������������������������������������������������������������������� 14
Multiplication ���������������������������������������������������������������������������������������������������������������������������������������� 16
Division ������������������������������������������������������������������������������������������������������������������������������������������������� 19
Table of Contents
About the Author ����������������������������������������������������������������������������������������������������� xi
About the Technical Reviewer ������������������������������������������������������������������������������� xiii
Acknowledgments ���������������������������������������������������������������������������������������������������xv
Introduction �����������������������������������������������������������������������������������������������������������xvii
■ TABLE OF CONTENTS
iv
Integer Operations ���������������������������������������������������������������������������������������������������������� 23
Load Instructions ���������������������������������������������������������������������������������������������������������������������������������� 23
Move Instructions ��������������������������������������������������������������������������������������������������������������������������������� 26
Bitwise Logical Operations ������������������������������������������������������������������������������������������������������������������� 34
Summary ������������������������������������������������������������������������������������������������������������������������ 36
■Chapter 3: Armv8-32 Core Programming – Part 2 ���������������������������������������������� 37
Stack Arguments ������������������������������������������������������������������������������������������������������������ 37
Basic Stack Arguments �������������������������������������������������������������������������������������������������������������������������37
Stack Arguments Using Mixed Integers ������������������������������������������������������������������������������������������������40
Advance Stack Use ��������������������������������������������������������������������������������������������������������� 44
Stack Use with Local Storage ���������������������������������������������������������������������������������������������������������������45
Stack Use with Frame Pointer ��������������������������������������������������������������������������������������������������������������49
Using the APSR Condition Flags ������������������������������������������������������������������������������������� 53
Comparisons ����������������������������������������������������������������������������������������������������������������������������������������� 53
Looping ������������������������������������������������������������������������������������������������������������������������������������������������� 58
Summary ������������������������������������������������������������������������������������������������������������������������ 64
■Chapter 4: Armv8-32 Core Programming – Part 3 ���������������������������������������������� 65
Integer Arrays ����������������������������������������������������������������������������������������������������������������� 65
Array Arithmetic ������������������������������������������������������������������������������������������������������������������������������������65
Array Arithmetic Using Multiple Arrays �������������������������������������������������������������������������������������������������69
Integer Matrices ������������������������������������������������������������������������������������������������������������� 73
Accessing Matrix Elements ������������������������������������������������������������������������������������������������������������������ 73
Row-Column Sums ������������������������������������������������������������������������������������������������������������������������������� 76
Advanced Programming ������������������������������������������������������������������������������������������������� 81
Array Reversal ��������������������������������������������������������������������������������������������������������������������������������������81
Structures ���������������������������������������������������������������������������������������������������������������������������������������������86
Summary ������������������������������������������������������������������������������������������������������������������������ 90
剩余476页未读,继续阅读
资源评论
AlgoOy
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 基于matlab实现自适应波束形成RLS及LMS算法仿真源程序1.rar
- 基于matlab实现自己编写的基于卡尔曼滤波的利用加速度传感器的计步器,测试数据是传感器放在腰部和手臂 .rar
- 基于matlab实现阵列信号处理,波束形成.rar
- 111111111111111111
- 基于matlab实现计步器编程;对当前的计步器装置的数值算法模拟 .rar
- Mdb学习查看PW;access;mdb;pw;password;patch
- 基于matlab实现关于语音信号声源定位DOA估计所用的一些传统算法.rar
- 基于ultralytics-yolov8, 将其检测/分类/分割/姿态等任务移植到rk3588上
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功