f21491994fe1febe4dc641904515a3faa2626c7e
[oota-llvm.git] / docs / CompilerWriterInfo.rst
1 .. _compiler_writer_info:
2
3 ========================================================
4 Architecture & Platform Information for Compiler Writers
5 ========================================================
6
7 .. contents::
8    :local:
9
10 .. note::
11
12   This document is a work-in-progress.  Additions and clarifications are
13   welcome.
14
15   Compiled by `Misha Brukman <http://misha.brukman.net>`_.
16
17 Hardware
18 ========
19
20 ARM
21 ---
22
23 * `ARM documentation <http://www.arm.com/documentation/>`_ (`Processor Cores <http://www.arm.com/documentation/ARMProcessor_Cores/>`_ Cores)
24
25 * `ABI <http://www.arm.com/products/DevTools/ABI.html>`_
26
27 Itanium (ia64)
28 --------------
29
30 * `Itanium documentation <http://developer.intel.com/design/itanium2/documentation.htm>`_
31
32 MIPS
33 ----
34
35 * `MIPS Processor Architecture <http://mips.com/content/Documentation/MIPSDocumentation/ProcessorArchitecture/doclibrary>`_
36
37 PowerPC
38 -------
39
40 IBM - Official manuals and docs
41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 * `PowerPC Architecture Book <http://www-106.ibm.com/developerworks/eserver/articles/archguide.html>`_
44
45   * Book I: `PowerPC User Instruction Set Architecture <http://www-106.ibm.com/developerworks/eserver/pdfs/archpub1.pdf>`_
46
47   * Book II: `PowerPC Virtual Environment Architecture <http://www-106.ibm.com/developerworks/eserver/pdfs/archpub2.pdf>`_
48
49   * Book III: `PowerPC Operating Environment Architecture <http://www-106.ibm.com/developerworks/eserver/pdfs/archpub3.pdf>`_
50
51 * `PowerPC Compiler Writer's Guide <http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF7785256996007558C6>`_
52
53 * `PowerPC Processor Manuals <http://www-3.ibm.com/chips/techlib/techlib.nsf/products/PowerPC>`_
54
55 * `Intro to PowerPC Architecture <http://www-106.ibm.com/developerworks/linux/library/l-powarch/>`_
56
57 * `IBM AIX/5L for POWER Assembly Reference <http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixassem/alangref/alangreftfrm.htm>`_
58
59 Other documents, collections, notes
60 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61
62 * `PowerPC ABI documents <http://penguinppc.org/dev/#library>`_
63 * `PowerPC64 alignment of long doubles (from GCC) <http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00997.html>`_
64 * `Long branch stubs for powerpc64-linux (from binutils) <http://sources.redhat.com/ml/binutils/2002-04/msg00573.html>`_
65
66 SPARC
67 -----
68
69 * `SPARC resources <http://www.sparc.org/resource.htm>`_
70 * `SPARC standards <http://www.sparc.org/standards.html>`_
71
72 X86
73 ---
74
75 AMD - Official manuals and docs
76 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
78 * `AMD processor manuals <http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_739,00.html>`_
79 * `X86-64 ABI <http://www.x86-64.org/documentation>`_
80
81 Intel - Official manuals and docs
82 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
84 * `Intel 64 and IA-32 manuals <http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html>`_
85 * `Intel Itanium documentation <http://www.intel.com/design/itanium/documentation.htm?iid=ipp_srvr_proc_itanium2+techdocs>`_
86
87 Other x86-specific information
88 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
90 * `Calling conventions for different C++ compilers and operating systems  <http://www.agner.org/optimize/calling_conventions.pdf>`_
91
92 Other relevant lists
93 --------------------
94
95 * `GCC reading list <http://gcc.gnu.org/readings.html>`_
96
97 ABI
98 ===
99
100 Linux
101 -----
102
103 * `PowerPC 64-bit ELF ABI Supplement <http://www.linuxbase.org/spec/ELF/ppc64/>`_
104
105 OS X
106 ----
107
108 * `Mach-O Runtime Architecture <http://developer.apple.com/documentation/Darwin/RuntimeArchitecture-date.html>`_
109 * `Notes on Mach-O ABI <http://www.unsanity.org/archives/000044.php>`_
110
111 Miscellaneous Resources
112 =======================
113
114 * `Executable File Format library <http://www.nondot.org/sabre/os/articles/ExecutableFileFormats/>`_
115
116 * `GCC prefetch project <http://gcc.gnu.org/projects/prefetch.html>`_ page has a
117   good survey of the prefetching capabilities of a variety of modern
118   processors.