没有合适的资源?快使用搜索试试~ 我知道了~
Oracle Solaris 10 SPARC Assembly Language Reference Manual-106
需积分: 5 0 下载量 163 浏览量
2023-06-28
11:53:40
上传
评论
收藏 847KB PDF 举报
温馨提示
试读
106页
Oracle Solaris 10 SPARC Assembly Language Reference Manual-106
资源推荐
资源详情
资源评论
SPARC Assembly Language Reference
Manual
Part No: 816–1681–10
May 2002
Copyright ©2002Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this
product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software,
including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, and Solaris are trademarks, registered trademarks, or service marks of Sun
Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC
International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering eorts of
Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the
Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license
agreements.
Federal Acquisitions: Commercial Software–Government Users Subject to Standard License Terms and Conditions.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO
THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright ©2002Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l'utilisation, la copie, la distribution, et la décompilation.
Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l'autorisation préalable et écrite de Sun et
de ses bailleurs de licence, s'il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et
licencié par des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées du système Berkeley BSD licenciés par l'Université de Californie. UNIX est une marque déposée aux Etats-Unis et
dans d'autres pays et licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, docs.sun.com, AnswerBook, AnswerBook2, et Solaris sont des marques de fabrique ou des marques déposées, ou marques de
service, de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des
marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés sur une architecture
développée par Sun Microsystems, Inc.
L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les eorts de
pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient
une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface
d'utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun.
CETTE PUBLICATION EST FOURNIE “EN L'ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N'EST ACCORDEE, Y COMPRIS DES
GARANTIES CONCERNANT LA VALEUR MARCHANDE, L'APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU
LE FAIT QU'ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE S'APPLIQUERAIT PAS, DANS LA MESURE OU
IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.
110417@25097
Contents
Preface .....................................................................................................................................................7
1 SPARC Assembler for SunOS 5.x .......................................................................................................... 11
1.1 Operating Environment ............................................................................................................... 11
1.2 SPARC Assembler for SunOS 4.1 Versus SunOS 5.x ................................................................. 11
1.2.1 Labeling Format .................................................................................................................. 11
1.2.2 Object File Format .............................................................................................................. 12
1.2.3 Pseudo-Operations ............................................................................................................. 12
1.2.4 Command Line Options .................................................................................................... 12
2 Assembler Syntax ................................................................................................................................13
2.1 Syntax Notation ............................................................................................................................. 13
2.2 Assembler File Syntax ................................................................................................................... 14
2.2.1 Lines Syntax ......................................................................................................................... 14
2.2.2 Statement Syntax ................................................................................................................. 14
2.3 Lexical Features ............................................................................................................................. 14
2.3.1 Case Distinction .................................................................................................................. 14
2.3.2 Comments ........................................................................................................................... 14
2.3.3 Labels .................................................................................................................................... 15
2.3.4 Numbers ............................................................................................................................... 15
2.3.5 Strings ................................................................................................................................... 15
2.3.6 Symbol Names ..................................................................................................................... 16
2.3.7 Special Symbols - Registers ................................................................................................ 16
2.3.8 Operators and Expressions ................................................................................................ 18
2.3.9 SPARC V9 Operators and Expressions ............................................................................ 19
2.4 Assembler Error Messages ........................................................................................................... 20
3
3 Executable and Linking Format ........................................................................................................ 21
3.1 ELF Header ..................................................................................................................................... 22
3.2 Sections ........................................................................................................................................... 23
3.2.1 Section Header .................................................................................................................... 24
3.2.2 Predened User Sections ................................................................................................... 27
3.2.3 Predened Non-User Sections .......................................................................................... 29
3.3 Locations ........................................................................................................................................ 29
3.4 Addresses ........................................................................................................................................ 30
3.5 Relocation Tables .......................................................................................................................... 30
3.6 Symbol Tables ................................................................................................................................ 30
3.7 String Tables ................................................................................................................................... 32
3.8 Assembler Directives .................................................................................................................... 32
3.8.1 Section Control Directives ................................................................................................. 32
3.8.2 Symbol Attribute Directives .............................................................................................. 33
3.8.3 Assignment Directive ......................................................................................................... 33
3.8.4 Data Generating Directives ............................................................................................... 33
4 Converting Files to the New Format ................................................................................................. 35
4.1 Conversion Instructions ............................................................................................................... 35
4.2 Examples ........................................................................................................................................ 35
5 Instruction-Set Mapping ....................................................................................................................37
5.1 Table Notation ............................................................................................................................... 37
5.2 Integer Instructions ....................................................................................................................... 39
5.3 Floating-Point Instruction ........................................................................................................... 46
5.4 Coprocessor Instructions ............................................................................................................. 48
5.5 Synthetic Instructions ................................................................................................................... 48
5.6 V8/V9 Natural Pseudo Instructions ............................................................................................ 50
A Pseudo-Operations .............................................................................................................................53
A.1 Alphabetized Listing with Descriptions .................................................................................... 53
B Examples of Pseudo-Operations .......................................................................................................61
B.1 Example 1 ....................................................................................................................................... 61
Contents
SPARC Assembly Language Reference Manual • M ay 20024
B.2 Example 2 ....................................................................................................................................... 62
B.3 Example 3 ....................................................................................................................................... 62
B.4 Example 4 ....................................................................................................................................... 63
B.5 Example 5 ....................................................................................................................................... 63
C Using the Assembler Command Line ............................................................................................... 65
C.1 Assembler Command Line .......................................................................................................... 65
C.2 Assembler Command Line Options ........................................................................................... 66
C.3 Disassembling Object Code ........................................................................................................ 69
D An Example Language Program .......................................................................................................71
E SPARC-V9 Instruction Set ...................................................................................................................77
E.1 SPARC-V9 Changes ...................................................................................................................... 77
E.1.1 Registers ............................................................................................................................... 77
E.1.2 Alternate Space Access .......................................................................................................79
E.1.3 Byte Order ........................................................................................................................... 79
E.2 SPARC-V9 Instruction Set Changes ........................................................................................... 79
E.2.1 Extended Instruction Denitions to Support the 64-bit Model .................................... 79
E.2.2 Added Instructions to Support 64 bits ............................................................................. 80
E.2.3 Added Instructions to Support High-Performance System Implementation ............. 81
E.2.4 Deleted Instructions ........................................................................................................... 81
E.2.5 Miscellaneous Instruction Changes ................................................................................. 82
E.3 SPARC-V9 Instruction Set Mapping .......................................................................................... 82
E.4 SPARC-V9 Floating-Point Instruction Set Mapping ................................................................ 90
E.5 SPARC-V9 Synthetic Instruction-Set Mapping ........................................................................ 92
E.6 UltraSPARC and VIS Instruction Set Extensions ..................................................................... 93
E.6.1 Graphics Data Formats ...................................................................................................... 94
E.6.2 Eight-bit Format ................................................................................................................. 94
E.6.3 Fixed Data Formats ............................................................................................................ 94
E.6.4 SHUTDOWN Instruction ................................................................................................. 94
E.6.5 Graphics Status Register (GSR) ........................................................................................ 94
E.6.6 Graphics Instructions ........................................................................................................ 95
E.6.7 Memory Access Instructions ............................................................................................. 99
Contents
5
剩余105页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功