Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assembly Intro
- Assembly doesn't have high level abstraction and stuff I guess idk
- Instruction set architecture
- - CISC-- x64 (intel x86 64 bit), IA32 (32 bit)
- - RISC -- Acorn Risc Machine (ARM), MIPS, PowerPC
- Register: word sized storage unit on the CPU that holds instructions, addresses, and/or data
- CPU has 16 total registers for storing integer data and pointers-- see slides for the list of registers
- If a thing has fewer than 8 bytes (64-bit), it may use component registers
- use "disas functionname" in gdb to show assembly code shit
- =====
- Lesson 11
- Program memory: address space that OS assigns an executable when it is run
- Program stack aka call stack: Section of memory that stores parametres and local variables of a function. It grows towards lower addresses during execution and shrinks back to original size when the function exits
- mov, add, sub, push, pop
- stack = %rsp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement