184 off this behaviour from the machine code that the \code{gcc} |
184 off this behaviour from the machine code that the \code{gcc} |
185 compiler generates for the program above:\footnote{You can |
185 compiler generates for the program above:\footnote{You can |
186 make \pcode{gcc} generate assembly instructions if you call it |
186 make \pcode{gcc} generate assembly instructions if you call it |
187 with the \pcode{-S} option, for example \pcode{gcc -S out |
187 with the \pcode{-S} option, for example \pcode{gcc -S out |
188 in.c}\;. Or you can look at this code by using the debugger. |
188 in.c}\;. Or you can look at this code by using the debugger. |
189 How to do this will be explained later.} |
189 How to do this will be explained in the last section.} |
190 |
190 |
191 \begin{center}\small |
191 \begin{center}\small |
192 \begin{tabular}[t]{p{10cm}} |
192 \begin{tabular}[t]{p{11cm}} |
193 {\lstinputlisting[language={[x86masm]Assembler}, |
193 {\lstinputlisting[language={[x86masm]Assembler}, |
194 morekeywords={movl},xleftmargin=5mm] |
194 morekeywords={movl},xleftmargin=5mm] |
195 {../progs/example1a.s}} |
195 {../progs/example1a.s}} |
196 \end{tabular} |
196 \end{tabular} |
197 \end{center} |
197 \end{center} |
198 \begin{center}\small |
198 \begin{center}\small |
199 \begin{tabular}[t]{p{10cm}} |
199 \begin{tabular}[t]{p{11cm}} |
200 {\lstinputlisting[language={[x86masm]Assembler}, |
200 {\lstinputlisting[language={[x86masm]Assembler}, |
201 morekeywords={movl,movw},xleftmargin=5mm] |
201 morekeywords={movl,movw},xleftmargin=5mm] |
202 {../progs/example1b.s}} |
202 {../progs/example1b.s}} |
203 \end{tabular} |
203 \end{tabular} |
204 \end{center} |
204 \end{center} |