mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-10-09 05:46:20 +02:00
[SPCA] Finish stack, data type compilation details
This commit is contained in:
1 parent
639c147264
commit
9da3a2c0d3
23 files changed
+255
-156
No files matched your search
@@ -0,0 +1,12 @@
|
||||
\newpage
|
||||
\subsection{The syntax}
|
||||
There are two common styles: AT\&T syntax (common on UNIX) and Intel syntax (common on Windows)
|
||||
|
||||
The state that is visible to us is:
|
||||
\begin{itemize}
|
||||
\item PC (Program Counter) that contains the address of the next instruction
|
||||
\item Register file that contains the most used program data
|
||||
\item Condition codes that store status information about most recent arithmetic operation and are used for conditional branching
|
||||
\end{itemize}
|
||||
|
||||
To view what \lC\ code looks like in assembly, we can use \texttt{gcc -O0 -S code.c}, which produces \texttt{code.s} which contains assembly code.
|
||||
Reference in new issue
Block a user