xref: /aosp_15_r20/external/llvm/docs/CompilerWriterInfo.rst (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker========================================================
2*9880d681SAndroid Build Coastguard WorkerArchitecture & Platform Information for Compiler Writers
3*9880d681SAndroid Build Coastguard Worker========================================================
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker.. contents::
6*9880d681SAndroid Build Coastguard Worker   :local:
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker.. note::
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker  This document is a work-in-progress.  Additions and clarifications are
11*9880d681SAndroid Build Coastguard Worker  welcome.
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard WorkerHardware
14*9880d681SAndroid Build Coastguard Worker========
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard WorkerAArch64 & ARM
17*9880d681SAndroid Build Coastguard Worker-------------
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker* `ARMv8-A Architecture Reference Manual <http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0487a.h/index.html>`_ (authentication required, free sign-up). This document covers both AArch64 and ARM instructions
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker* `ARMv7-M Architecture Reference Manual` <http://infocenter.arm.com/help/topic/com.arm.doc.ddi0403e.b/index.html>`_ (authentication required, free sign-up). This covers the Thumb2-only microcontrollers
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker* `ARMv6-M Architecture Reference Manual` <http://infocenter.arm.com/help/topic/com.arm.doc.ddi0419c/index.html>_ (authentication required, free sign-up). This covers the Thumb1-only microcontrollers
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Worker* `ARM C Language Extensions <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf>`_
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker* AArch32 `ABI Addenda and Errata <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0045d/IHI0045D_ABI_addenda.pdf>`_
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard WorkerItanium (ia64)
30*9880d681SAndroid Build Coastguard Worker--------------
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker* `Itanium documentation <http://developer.intel.com/design/itanium2/documentation.htm>`_
33*9880d681SAndroid Build Coastguard Worker
34*9880d681SAndroid Build Coastguard WorkerMIPS
35*9880d681SAndroid Build Coastguard Worker----
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Worker* `MIPS Processor Architecture <http://imgtec.com/mips/mips-architectures.asp>`_
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker* `MIPS 64-bit ELF Object File Specification <http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf>`_
40*9880d681SAndroid Build Coastguard Worker
41*9880d681SAndroid Build Coastguard WorkerPowerPC
42*9880d681SAndroid Build Coastguard Worker-------
43*9880d681SAndroid Build Coastguard Worker
44*9880d681SAndroid Build Coastguard WorkerIBM - Official manuals and docs
45*9880d681SAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46*9880d681SAndroid Build Coastguard Worker
47*9880d681SAndroid Build Coastguard Worker* `Power Instruction Set Architecture, Versions 2.03 through 2.06 (authentication required, free sign-up) <https://www.power.org/technology-introduction/standards-specifications>`_
48*9880d681SAndroid Build Coastguard Worker
49*9880d681SAndroid Build Coastguard Worker* `PowerPC Compiler Writer's Guide <http://www.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF7785256996007558C6>`_
50*9880d681SAndroid Build Coastguard Worker
51*9880d681SAndroid Build Coastguard Worker* `Intro to PowerPC Architecture <http://www.ibm.com/developerworks/linux/library/l-powarch/>`_
52*9880d681SAndroid Build Coastguard Worker
53*9880d681SAndroid Build Coastguard Worker* `PowerPC Processor Manuals (embedded) <http://www.ibm.com/chips/techlib/techlib.nsf/products/PowerPC>`_
54*9880d681SAndroid Build Coastguard Worker
55*9880d681SAndroid Build Coastguard Worker* `Various IBM specifications and white papers <https://www.power.org/documentation/?document_company=105&document_category=all&publish_year=all&grid_order=DESC&grid_sort=title>`_
56*9880d681SAndroid Build Coastguard Worker
57*9880d681SAndroid Build Coastguard Worker* `IBM AIX/5L for POWER Assembly Reference <http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixassem/alangref/alangreftfrm.htm>`_
58*9880d681SAndroid Build Coastguard Worker
59*9880d681SAndroid Build Coastguard WorkerOther documents, collections, notes
60*9880d681SAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61*9880d681SAndroid Build Coastguard Worker
62*9880d681SAndroid Build Coastguard Worker* `PowerPC ABI documents <http://penguinppc.org/dev/#library>`_
63*9880d681SAndroid Build Coastguard Worker* `PowerPC64 alignment of long doubles (from GCC) <http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00997.html>`_
64*9880d681SAndroid Build Coastguard Worker* `Long branch stubs for powerpc64-linux (from binutils) <http://sources.redhat.com/ml/binutils/2002-04/msg00573.html>`_
65*9880d681SAndroid Build Coastguard Worker
66*9880d681SAndroid Build Coastguard WorkerAMDGPU
67*9880d681SAndroid Build Coastguard Worker------
68*9880d681SAndroid Build Coastguard Worker
69*9880d681SAndroid Build Coastguard Worker* `AMD R6xx shader ISA <http://developer.amd.com/wordpress/media/2012/10/R600_Instruction_Set_Architecture.pdf>`_
70*9880d681SAndroid Build Coastguard Worker* `AMD R7xx shader ISA <http://developer.amd.com/wordpress/media/2012/10/R700-Family_Instruction_Set_Architecture.pdf>`_
71*9880d681SAndroid Build Coastguard Worker* `AMD Evergreen shader ISA <http://developer.amd.com/wordpress/media/2012/10/AMD_Evergreen-Family_Instruction_Set_Architecture.pdf>`_
72*9880d681SAndroid Build Coastguard Worker* `AMD Cayman/Trinity shader ISA <http://developer.amd.com/wordpress/media/2012/10/AMD_HD_6900_Series_Instruction_Set_Architecture.pdf>`_
73*9880d681SAndroid Build Coastguard Worker* `AMD Southern Islands Series ISA <http://developer.amd.com/wordpress/media/2012/12/AMD_Southern_Islands_Instruction_Set_Architecture.pdf>`_
74*9880d681SAndroid Build Coastguard Worker* `AMD Sea Islands Series ISA <http://developer.amd.com/wordpress/media/2013/07/AMD_Sea_Islands_Instruction_Set_Architecture.pdf>`_
75*9880d681SAndroid Build Coastguard Worker* `AMD GPU Programming Guide <http://developer.amd.com/download/AMD_Accelerated_Parallel_Processing_OpenCL_Programming_Guide.pdf>`_
76*9880d681SAndroid Build Coastguard Worker* `AMD Compute Resources <http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/documentation/>`_
77*9880d681SAndroid Build Coastguard Worker
78*9880d681SAndroid Build Coastguard WorkerSPARC
79*9880d681SAndroid Build Coastguard Worker-----
80*9880d681SAndroid Build Coastguard Worker
81*9880d681SAndroid Build Coastguard Worker* `SPARC standards <http://sparc.org/standards>`_
82*9880d681SAndroid Build Coastguard Worker* `SPARC V9 ABI <http://sparc.org/standards/64.psabi.1.35.ps.Z>`_
83*9880d681SAndroid Build Coastguard Worker* `SPARC V8 ABI <http://sparc.org/standards/psABI3rd.pdf>`_
84*9880d681SAndroid Build Coastguard Worker
85*9880d681SAndroid Build Coastguard WorkerSystemZ
86*9880d681SAndroid Build Coastguard Worker-------
87*9880d681SAndroid Build Coastguard Worker
88*9880d681SAndroid Build Coastguard Worker* `z/Architecture Principles of Operation (registration required, free sign-up) <http://www-01.ibm.com/support/docview.wss?uid=isg2b9de5f05a9d57819852571c500428f9a>`_
89*9880d681SAndroid Build Coastguard Worker
90*9880d681SAndroid Build Coastguard WorkerX86
91*9880d681SAndroid Build Coastguard Worker---
92*9880d681SAndroid Build Coastguard Worker
93*9880d681SAndroid Build Coastguard Worker* `AMD processor manuals <http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_739,00.html>`_
94*9880d681SAndroid Build Coastguard Worker* `Intel 64 and IA-32 manuals <http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html>`_
95*9880d681SAndroid Build Coastguard Worker* `Intel Itanium documentation <http://www.intel.com/design/itanium/documentation.htm?iid=ipp_srvr_proc_itanium2+techdocs>`_
96*9880d681SAndroid Build Coastguard Worker* `X86 and X86-64 SysV psABI <https://github.com/hjl-tools/x86-psABI/wiki/X86-psABI>`_
97*9880d681SAndroid Build Coastguard Worker* `Calling conventions for different C++ compilers and operating systems  <http://www.agner.org/optimize/calling_conventions.pdf>`_
98*9880d681SAndroid Build Coastguard Worker
99*9880d681SAndroid Build Coastguard WorkerXCore
100*9880d681SAndroid Build Coastguard Worker-----
101*9880d681SAndroid Build Coastguard Worker
102*9880d681SAndroid Build Coastguard Worker* `The XMOS XS1 Architecture (ISA) <https://www.xmos.com/en/download/public/The-XMOS-XS1-Architecture%28X7879A%29.pdf>`_
103*9880d681SAndroid Build Coastguard Worker* `Tools Development Guide (includes ABI) <https://www.xmos.com/download/public/Tools-Development-Guide%28X9114A%29.pdf>`_
104*9880d681SAndroid Build Coastguard Worker
105*9880d681SAndroid Build Coastguard WorkerOther relevant lists
106*9880d681SAndroid Build Coastguard Worker--------------------
107*9880d681SAndroid Build Coastguard Worker
108*9880d681SAndroid Build Coastguard Worker* `GCC reading list <http://gcc.gnu.org/readings.html>`_
109*9880d681SAndroid Build Coastguard Worker
110*9880d681SAndroid Build Coastguard WorkerABI
111*9880d681SAndroid Build Coastguard Worker===
112*9880d681SAndroid Build Coastguard Worker
113*9880d681SAndroid Build Coastguard Worker* `System V Application Binary Interface <http://www.sco.com/developers/gabi/latest/contents.html>`_
114*9880d681SAndroid Build Coastguard Worker* `Itanium C++ ABI <http://mentorembedded.github.io/cxx-abi/>`_
115*9880d681SAndroid Build Coastguard Worker
116*9880d681SAndroid Build Coastguard WorkerLinux
117*9880d681SAndroid Build Coastguard Worker-----
118*9880d681SAndroid Build Coastguard Worker
119*9880d681SAndroid Build Coastguard Worker* `Linux extensions to gabi <https://github.com/hjl-tools/linux-abi/wiki/Linux-Extensions-to-gABI>`_
120*9880d681SAndroid Build Coastguard Worker* `PowerPC 64-bit ELF ABI Supplement <http://www.linuxbase.org/spec/ELF/ppc64/>`_
121*9880d681SAndroid Build Coastguard Worker* `Procedure Call Standard for the AArch64 Architecture <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055a/IHI0055A_aapcs64.pdf>`_
122*9880d681SAndroid Build Coastguard Worker* `ELF for the ARM Architecture <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf>`_
123*9880d681SAndroid Build Coastguard Worker* `ELF for the ARM 64-bit Architecture (AArch64) <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0056a/IHI0056A_aaelf64.pdf>`_
124*9880d681SAndroid Build Coastguard Worker* `System z ELF ABI Supplement <http://legacy.redhat.com/pub/redhat/linux/7.1/es/os/s390x/doc/lzsabi0.pdf>`_
125*9880d681SAndroid Build Coastguard Worker
126*9880d681SAndroid Build Coastguard WorkerOS X
127*9880d681SAndroid Build Coastguard Worker----
128*9880d681SAndroid Build Coastguard Worker
129*9880d681SAndroid Build Coastguard Worker* `Mach-O Runtime Architecture <http://developer.apple.com/documentation/Darwin/RuntimeArchitecture-date.html>`_
130*9880d681SAndroid Build Coastguard Worker* `Notes on Mach-O ABI <http://www.unsanity.org/archives/000044.php>`_
131*9880d681SAndroid Build Coastguard Worker
132*9880d681SAndroid Build Coastguard WorkerWindows
133*9880d681SAndroid Build Coastguard Worker-------
134*9880d681SAndroid Build Coastguard Worker
135*9880d681SAndroid Build Coastguard Worker* `Microsoft PE/COFF Specification <http://www.microsoft.com/whdc/system/platform/firmware/pecoff.mspx>`_
136*9880d681SAndroid Build Coastguard Worker
137*9880d681SAndroid Build Coastguard WorkerNVPTX
138*9880d681SAndroid Build Coastguard Worker=====
139*9880d681SAndroid Build Coastguard Worker
140*9880d681SAndroid Build Coastguard Worker* `CUDA Documentation <http://docs.nvidia.com/cuda/index.html>`_ includes the PTX
141*9880d681SAndroid Build Coastguard Worker  ISA and Driver API documentation
142*9880d681SAndroid Build Coastguard Worker
143*9880d681SAndroid Build Coastguard WorkerMiscellaneous Resources
144*9880d681SAndroid Build Coastguard Worker=======================
145*9880d681SAndroid Build Coastguard Worker
146*9880d681SAndroid Build Coastguard Worker* `Executable File Format library <http://www.nondot.org/sabre/os/articles/ExecutableFileFormats/>`_
147*9880d681SAndroid Build Coastguard Worker
148*9880d681SAndroid Build Coastguard Worker* `GCC prefetch project <http://gcc.gnu.org/projects/prefetch.html>`_ page has a
149*9880d681SAndroid Build Coastguard Worker  good survey of the prefetching capabilities of a variety of modern
150*9880d681SAndroid Build Coastguard Worker  processors.
151