mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-13 02:38:25 +00:00
[SPCA] Add example to ASM
This commit is contained in:
@@ -35,3 +35,9 @@ Today, the choices are made based on outside constraints usually. For desktops a
|
||||
For embedded systems though, the reduced complexity of RISC makes more sense, but for how long still?
|
||||
|
||||
What matters most today are non-technical factors such as existance of code for one ISA or licensing costs (and of course, Geopolitics)
|
||||
|
||||
\shade{purple}{Example} A \verb|C| function that simply adds $2$ arguments might be compiled (unoptimized) to this:
|
||||
|
||||
\inputcodewithfilename{gas}{code-examples/01_asm/}{01_sum.s}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user