Lab cheat sheet
Assembly
To assemble and link (Compile):as --gstabs 1.s -o 1.o
as --gstabs utils.s -o utils.o
ld 1.o utils.o -o 1.out
./1.out
gdb ./1.out
git add my_file.txt
git commit -m "Wrote some stuff in my_file.txt"
git push -u origin master
as --gstabs 1.s -o 1.o
as --gstabs utils.s -o utils.o
ld 1.o utils.o -o 1.out
./1.out
gdb ./1.out
git add my_file.txt
git commit -m "Wrote some stuff in my_file.txt"
git push -u origin master
Course Homepage:
imada.sdu.dk/~jlandersen/teaching/dm548_20/
IMADA git server:
git.imada.sdu.dk
Test server:
dm548.imada.sdu.dk
Git guide:
imada.sdu.dk/~jlandersen/_static/git.pdf
GDB intro:
imada.sdu.dk/~jlandersen/_static/teaching/dm548_20/gdbNotes.pdf
A video series about building a CPU from scratch! Only using basic logic chips; this series really gives you an intuition for what makes a CPU tick (literally).
The host of the youtube channel, Ben Eater, is a really good teacher (he used to work for Kahn Academy). I would recommend anything by that guy!
Comparing C to machine language
Another video by Ben Eater.
I would like be able to point you to some good assembly programming video tutorials; the only thing I can think of is this youtube channel. I remember learning a thing or two from his videos.
Be aware that he writes in Intel syntax where the operands are flipped compared to AT&T syntax that we have learned.
Young Sloth Learning's series on the stack
Thank you to Martin for recommending this series. (^:
Send me (Jakob, your TA) an e-mail: jakkj16@student.sdu.dk