<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Memory-Layout on wid's blog</title><link>https://wid-blog.github.io/tags/memory-layout/</link><description>Recent content in Memory-Layout on wid's blog</description><generator>Hugo</generator><language>ko</language><lastBuildDate>Tue, 17 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://wid-blog.github.io/tags/memory-layout/index.xml" rel="self" type="application/rss+xml"/><item><title>Rust 메모리 배치와 할당</title><link>https://wid-blog.github.io/posts/tech/language/rust-memory-layout/</link><pubDate>Tue, 17 Nov 2026 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/language/rust-memory-layout/</guid><description>같은 세 필드를 가진 struct 가 선언 순서를 지키면 12바이트, 컴파일러에 맡기면 8바이트가 된다. Option&amp;lt;&amp;amp;T&amp;gt; 는 tag 없이 포인터와 같은 8바이트이고, Vec 은 스택에 24바이트를 두고 원소는 힙에 둔다. 타입의 크기는 size_of 로, 할당을 줄인 효과는 criterion 으로 확인했다. Rust 공부 시리즈의 여덟 번째 글.</description></item></channel></rss>