ROM and RAM in ARM

前端 未结 4 1657
别跟我提以往
别跟我提以往 2021-01-29 20:07

I am working on an ARM processor, I wondered if the ROM and RAM used are quite different than what I assume. For an example, for a program having the following memory table:

4条回答
  •  忘掉有多难
    2021-01-29 21:10

    Igor Skochinsky gave you a good explanation (in my mind). I'll give you based on what I could find out with the KEIL build tools for a LPC23xx.

    If you have the possibility to generate the map file after compilation (in keil IDE this is a simple checkbox option in the build setup) open the file and at the end you'll see the following lines :

    Total RO Size (Code+Ro data)                36732 (35.87kB)
    Total RW Size (RW Data + ZI Data)           27348 (26.71kB
    Total ROM Size (Code + RO Data + RW Data)   36812 (35.95kB
    

    I think that is self-explanatory, the RO data resides in ROM and RW in RAM.

提交回复
热议问题