-
Stack memory with move semantics코딩Coding/Rust_Debugger_heap_memory_check 2022. 3. 6. 03:00728x90
https://users.rust-lang.org/t/stack-memory-with-move-semantics/22946
Stack memory with move semantics
Reading through the ‘book’, in section 4.1 it begins talking about move semantics, and how it works with memory on the stack vs memory on the heap. Using type String as an example I noticed that there is some minor overhead involved in how strings work
users.rust-lang.org
If you want to see the asm of your project, you can use this cargo command
cargo rustc -- --emit asm
cargo rustc --release -- --emit asm
and the asm will be in these files (where crate_name is the name of your crate)
target/debug/deps/crate_name.s
target/release/deps/crate_name.s반응형'코딩Coding > Rust_Debugger_heap_memory_check' 카테고리의 다른 글