comparison doc/manual/callconvs/callconv_ppc32.tex @ 90:e932e6331f35

- manual improvements * html output improved * consistency in tables * little bit of rewording, typos - todo item added
author cslag
date Fri, 03 Jun 2016 02:40:13 +0200
parents e441ef3ec782
children 5c3fa8897e0e
comparison
equal deleted inserted replaced
89:0f7d00b73257 90:e932e6331f35
43 43
44 \paragraph{Registers and register usage} 44 \paragraph{Registers and register usage}
45 45
46 \begin{table}[h] 46 \begin{table}[h]
47 \begin{tabular*}{0.95\textwidth}{3 B} 47 \begin{tabular*}{0.95\textwidth}{3 B}
48 \hline
49 Name & Brief description\\ 48 Name & Brief description\\
50 \hline 49 \hline
51 {\bf gpr0} & scratch\\ 50 {\bf gpr0} & scratch\\
52 {\bf gpr1} & stack pointer\\ 51 {\bf gpr1} & stack pointer\\
53 {\bf gpr2} & scratch\\ 52 {\bf gpr2} & scratch\\
66 {\bf lr} & scratch, link-register\\ 65 {\bf lr} & scratch, link-register\\
67 {\bf ctr} & scratch, count-register\\ 66 {\bf ctr} & scratch, count-register\\
68 {\bf cr0-cr1} & scratch\\ 67 {\bf cr0-cr1} & scratch\\
69 {\bf cr2-cr4} & permanent\\ 68 {\bf cr2-cr4} & permanent\\
70 {\bf cr5-cr7} & scratch\\ 69 {\bf cr5-cr7} & scratch\\
71 \hline
72 \end{tabular*} 70 \end{tabular*}
73 \caption{Register usage on Darwin PowerPC 32-Bit} 71 \caption{Register usage on Darwin PowerPC 32-Bit}
74 \end{table} 72 \end{table}
75 73
76 \paragraph{Parameter passing} 74 \paragraph{Parameter passing}
154 152
155 \paragraph{Registers and register usage} 153 \paragraph{Registers and register usage}
156 154
157 \begin{table}[h] 155 \begin{table}[h]
158 \begin{tabular*}{0.95\textwidth}{3 B} 156 \begin{tabular*}{0.95\textwidth}{3 B}
159 \hline
160 Name & Brief description\\ 157 Name & Brief description\\
161 \hline 158 \hline
162 {\bf r0} & scratch\\ 159 {\bf r0} & scratch\\
163 {\bf r1} & stack pointer\\ 160 {\bf r1} & stack pointer\\
164 {\bf r2} & system-reserved\\ 161 {\bf r2} & system-reserved\\
176 {\bf cr0-cr7} & Conditional register fields, each 4-bit wide (cr0-cr1 and cr5-cr7 are scratch)\\ 173 {\bf cr0-cr7} & Conditional register fields, each 4-bit wide (cr0-cr1 and cr5-cr7 are scratch)\\
177 {\bf lr} & Link register (scratch)\\ 174 {\bf lr} & Link register (scratch)\\
178 {\bf ctr} & Count register (scratch) \\ 175 {\bf ctr} & Count register (scratch) \\
179 {\bf xer} & Fixed-point exception register (scratch)\\ 176 {\bf xer} & Fixed-point exception register (scratch)\\
180 {\bf fpscr} & Floating-point Status and Control Register\\ 177 {\bf fpscr} & Floating-point Status and Control Register\\
181
182 % {\bf v0-v1} & scratch\\ 178 % {\bf v0-v1} & scratch\\
183 % {\bf v2-v13} & vector parameters\\ 179 % {\bf v2-v13} & vector parameters\\
184 % {\bf v14-v19} & scratch\\ 180 % {\bf v14-v19} & scratch\\
185 % {\bf v20-v31} & permanent\\ 181 % {\bf v20-v31} & permanent\\
186 % {\bf lr} & scratch, link-register\\ 182 % {\bf lr} & scratch, link-register\\
187 % {\bf ctr} & scratch, count-register\\ 183 % {\bf ctr} & scratch, count-register\\
188 % {\bf cr0-cr1} & scratch\\ 184 % {\bf cr0-cr1} & scratch\\
189 % {\bf cr2-cr4} & permanent\\ 185 % {\bf cr2-cr4} & permanent\\
190 % {\bf cr5-cr7} & scratch\\ 186 % {\bf cr5-cr7} & scratch\\
191 \hline
192 \end{tabular*} 187 \end{tabular*}
193 \caption{Register usage on System V ABI PowerPC Processor} 188 \caption{Register usage on System V ABI PowerPC Processor}
194 \end{table} 189 \end{table}
195 190
196 \paragraph{Parameter passing} 191 \paragraph{Parameter passing}