FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Understanding Malloc() Internals: What I've Learnt So Far
How-ToWeb Development

Understanding Malloc() Internals: What I've Learnt So Far

via Dev.tomoonlitpath3w ago

Intro In my first year, I learnt C language, and have used malloc() multiple times in a program. I was curious about what work it actually did under the hood and how did it actually allocate memory. So I did some research, and watched a couple of videos on youtube.. this was one of the videos that was very useful. The Heap: what does malloc() do? - bin 0x14 by LiveOverflow This post documents everything that I have learnt so far. This is a work-in-progress, I will continue updating this post as i get more knowledge about this topic. What is Malloc() malloc()  is a C function that is used to allocate memory for a program. You can access the system heap using the inbuilt C function:  malloc(). It tries to give your program a chunk of memory that is large enough to hold  size  bits. Concepts Memory  is the address space that is in the RAM or swap. Accessing Heaps in C Heaps can be accessed in C using sbrk()  -> to access main heap mmap()  -> to access the additional heap Note: when you re

Continue reading on Dev.to

Opens in a new tab

Read Full Article
27 views

Related Articles

The Boring Skills That Make Developers Unstoppable in 2026
How-To

The Boring Skills That Make Developers Unstoppable in 2026

Medium Programming • 2d ago

I Installed This VS Code Extension… and My Code Got Instantly Better
How-To

I Installed This VS Code Extension… and My Code Got Instantly Better

Medium Programming • 2d ago

The Age of Personalized Software
How-To

The Age of Personalized Software

Medium Programming • 2d ago

Automating Checkout Add-On Recommendations in WordPress for WooCommerce
How-To

Automating Checkout Add-On Recommendations in WordPress for WooCommerce

Dev.to • 2d ago

How-To

Start Here: Learning to develop your own way with SCSIC

Medium Programming • 2d ago

Discover More Articles