ROM and RAM in ARM

前端 未结 4 1565
别跟我提以往
别跟我提以往 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 20:50

    How it is distributed between ROM and RAM is up to you, you need to tell the linker where to put things. Ideally you would want the code, which is read-only to be in rom, no use burning ram for that. Likewise read only data can go in rom. read write and zero init need to go in ram.

    What toolchain (gcc based, IAR, Keil, ARM, etc) are you using?

提交回复
热议问题