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

preview_player
Показать описание
we look at how Rust handles functions underneath the hood in this rustlang programming tutorial and what compiler tricks are performed to generate x86 assembly. We look at how rust allocates memory and works with registers and how registers are reused with function. We also look at what types are stack types and how memory is allocated and the difference between strongly types languages and dynamic languages and why the stack and the heap is key to this.

We not just look at immutable types on the stack but we also look at how rust handles immutable types and how it continues to reuse registers in the reusable assembly it generates

This is part 2 of our series on in our advanced rust programming tutorial of getting under the hood of the rust language by looking at the assembly it generates. If you want to truly understand how Rust works and what happens under the hood, it's worth learning the assembly that rust generates during the compile.

If you want to check out the first part of the series it's here

By understanding the intel assembly that rust generates you can have a deeper understanding Rust Programming and the Rust Language (RustLang).

00:25 - rust functions and assembly
11:37 - 64 bit integers vs 32 bit integers
12:37 - rust mutables versus immutables
19:04 - rust floats and assembly
21:26 - a complicated example (ints, floats, bool, if's) altogether
25:23 - conclusion

#rustlang
Рекомендации по теме
Комментарии
Автор

Man, you don't know how grateful I am right now! THANK YOU SO MUCH!!!

spacex
Автор

It would be really cool to see the journey from Rust code through HIR, MIR, LLVM IR all down to assembly. Can you make such vids?

dmitriidemenev
Автор

these videos are awesome! Thanks for your time to give us a clear idea of how the language works under the hood. A course about Rust and some cool applications in your channel soon?

rafaelcisnerosgomez