---
title: "#memory-layout articles | Hashnode"
description: "Explore 3 articles tagged #memory-layout on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/memory-layout"
---

Tag

# #memory-layout

3 posts · 0 followers

[Ayush Agrawal](https://hashnode.com/@AyushAgr91) · [Jul 15](https://hashnode.com/posts/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client/6a57c95fd6cc3a57108a73c7)

### [The 7 Bytes That Weren't in the IDL: How #\[repr(C)\] Padding Breaks a Borsh Client](https://blog.ayushagr.me/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client?utm_source=hashnode&utm_medium=feed)

A u64 field added 7 bytes of padding my borsh client never sent, triggering custom program error: 0x0 on Solana. When Rust pads, and how to fix it.

17 min read · [blog.ayushagr.me](https://blog.ayushagr.me/the-7-bytes-that-weren-t-in-the-idl-how-repr-c-padding-breaks-a-borsh-client?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 31, 2023](https://hashnode.com/posts/c-programs-in-memory/6590c3b00be757bab17bdb11)

### [C programs in memory](https://blog.jyotiprakash.org/c-programs-in-memory?utm_source=hashnode&utm_medium=feed)

To illustrate how a running C program is organized in memory, let's consider a sample C program and then depict its memory layout using an ASCII diagram. The memory of a running C program is typically divided into several segments: Code Section: Con...

2 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/c-programs-in-memory?utm_source=hashnode&utm_medium=feed)

[Ishita Juneja](https://hashnode.com/@IshitaJuneja) · [Aug 27, 2023](https://hashnode.com/posts/understanding-memory-management-in-c-programming/64eb63d4d4b61bf5d0a3ed3b)

### [Understanding Memory Management in C Programming](https://ishitajuneja.hashnode.dev/understanding-memory-management-in-c-programming?utm_source=hashnode&utm_medium=feed)

Memory management is an essential aspect of programming in any language, including C. Understanding memory management in C is critical for developing efficient and high-performing programs. C provides low-level memory management features that give de...

5 min read · [ishitajuneja.hashnode.dev](https://ishitajuneja.hashnode.dev/understanding-memory-management-in-c-programming?utm_source=hashnode&utm_medium=feed)
