'C program that gives the memory layout of another C program
I know what a C program's memory layout is. The problem is that I don't know how to make the memory layout myself... I want it to look something like the screenshot below:

It's taken from QtSpim... I don't know how to MAKE a memory layout of a C program, so if someone could help, that'd be amazing.
Solution 1:[1]
You're asking how to write a linker script, which in general depends on exactly which toolchain you're using. Do some googling for "linker script" and you'll come up with all sorts of tutorials on the subject. Here's one I found in about 3 seconds. Just make sure you find one that's appropriate for the specific compiler/linker you're using.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jon Reeves |
