# Memory layout for PROGMEM

**URL:** <https://forum.arduino.cc/t/memory-layout-for-progmem/1025453>\
**Category:** Programming\
**Created:** [August 25, 2022, 3:48am UTC](https://forum.arduino.cc/t/memory-layout-for-progmem/1025453 "2022-08-25T03:48:34Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![fastbike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fastbike/32/1126596_2.png) [@fastbike](https://forum.arduino.cc/u/fastbike)\
**Post date:** [August 25, 2022, 5:16am UTC](https://forum.arduino.cc/t/memory-layout-for-progmem/1025453/9 "2022-08-25T05:16:02Z")

</div>

Thanks Koepel

> For a processor, it is common that a 'const' goes into Flash memory and nowhere else. That is the rule. That is what the 'const' keyword is supposed to do.

That's got me on the right track (I'm new to this level of programming). I'll follow up by figuring out where my const block gets stored in the hex file and can work things out from there.  
This post looks useful

> [@Learning about the hex file](https://forum.arduino.cc/t/learning-about-the-hex-file/889586):
>
> Hi folks! I am trying to learn more about the hex file that is generated when I compile a sketch. So down below, you can see a regular BLINK sketch and its hex file. Does every line on the hex file correspond to a certain command in the sketch ( like Void, pinMode, loop)? What are the uses of having a hex file? The last line in the hex file is ":00000001FF", which is 511 in decimal. Is there something special about this line becuase it seems that almost all sketches end with line. Ty for th…

---

_[View the full topic](https://forum.arduino.cc/t/memory-layout-for-progmem/1025453)._
