How does the compiler in c stores the const variables in ROM

radha gogia

radha gogia

@radha-BTDzli Oct 22, 2024
I am just unable to understand that when ROM is only read only memory ,then how is the compiler able to store the variables with const keyword inside ROM ,although read-writable ROM's are also available ,but still how is the procedure done.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Koushal Patel

    Koushal Patel

    @koushal-C6mEgp Jan 28, 2015

    <a href="https://www.dansaks.com/articles/1998-11%20Placing%20Data%20into%20ROM%20with%20Standard%20C.pdf" target="_blank" rel="nofollow noopener noreferrer">PDF</a>