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

YouTube

How Rust Primitive Types and Functions Really Work Under the Hood in Rust Programming with Assembly

Chris Hay via YouTube

Overview

Dive deep into the inner workings of Rust primitive types and functions through an examination of the generated assembly code. Explore how Rust handles memory allocation, register usage, and function calls at the lowest level. Discover the differences between stack and heap allocation, and understand how Rust's type system translates to efficient machine code. Learn about the compiler's optimization techniques for both mutable and immutable types. Analyze complex examples involving integers, floats, booleans, and conditional statements to gain a comprehensive understanding of Rust's low-level behavior. This advanced tutorial is perfect for those seeking to truly master Rust programming by understanding its underlying mechanics.

Syllabus

- rust functions and assembly
- 64 bit integers vs 32 bit integers
- rust mutables versus immutables
- rust floats and assembly
- a complicated example ints, floats, bool, if's altogether
- conclusion

Taught by

Chris Hay

Reviews

Start your review of How Rust Primitive Types and Functions Really Work Under the Hood in Rust Programming with Assembly

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.