Surprise Me!

Demystifying x86-64 Program Segments: Stack, Heap, and More

2025-08-04 3 Dailymotion

Join us for a clear, engaging look at x86-64 program segments! We break down the text, data, and BSS sections, explore stack vs. heap memory, and show a real stack overflow in C++. Learn why segmentation faults happen, how virtual memory works, and tips to avoid crashes. Whether you're new to assembly or leveling up your coding skills, this video is packed with insights to boost your understanding of low-level programming. Subscribe for more coding deep dives!<br /><br />Introduction to x86-64 program segments 00:00:01<br />Understanding segmentation faults 00:00:12<br />Importance of segments in assembly 00:00:32<br />Overview of assembly program structure 00:01:09<br />Defining segments in Yasm assembly 00:01:49<br />Data section: Initialized global variables 00:02:20<br />BSS section: Uninitialized variables 00:03:23<br />Text section: Code and functions 00:03:59<br />Global and extern function declarations 00:04:41<br />Stack: Local variables and return addresses 00:07:11<br />Stack overflow example in C++ 00:08:48<br />Heap: Dynamic memory allocation 00:11:31<br />Stack vs heap memory growth 00:11:56<br />Virtual memory and memory allocation 00:14:00<br />Demonstrating memory overflow with heap allocation 00:16:59<br />Summary of segments and their purposes 00:17:59<br />Closing remarks and call to subscribe 00:18:47<br /><br />Thanks for watching!<br /><br />Find us on other social media here:<br />- https://www.NeuralLantern.com/social<br /><br />Please help support us!<br /><br />- Subscribing + Sharing on Social Media<br />- Leaving a comment or suggestion<br />- Subscribing to our Blog<br />- Watching the main "pinned" video of this channel for offers and extras<br />

Buy Now on CodeCanyon