Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Under the Hood of Rust Language with Assembly - Rust Programming Tutorial

Chris Hay via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course examines how Rust programs are compiled into assembly. Learners generate native and x64 Intel assembly, then analyze stack memory, registers, variable storage, arithmetic, overflow checks, and compiler optimizations.

Syllabus

- introduction
- create our rust project
- target folder and rust compile
- emitting rust assembly during compile
- cross compiling rust from apple silicon arm to x64 assembly
- emitting x64 assembly
- cargo show asm
- emitting rust assembly interleaved with rust using cargo show asm
- generating x64 intel assembly using rust and godbolt
- understanding stack frame memory allocation, stack pointer, rsp and sub
- variable assignment, mov and virtual registers
- assembly multiplication using imul
- storing local variables in the stack / stack frame memory for later use
- overflow checks and panickibng
- more calculations and some compiler optmizations
- understanding stack memory and primitive sizes and fixed memory
- jmp's are goto's in disguise
- more stack memory and compiler optimizations
- printing the result
- To Be Continued

Taught by

Chris Hay

Reviews

Start your review of Under the Hood of Rust Language with Assembly - Rust Programming Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.