I hope not posting full code here is not going to get me banned but it's rather large and superfluous in this case. 
I'm writing an emulator and putting the entire 64K memory map in an array. When compiled the array appears to reside in RAM2, is there any way to get it into RAM1 as I belive this would be up to four times faster. I think there should be sufficient space there.
uint8_t memory[0x10000];
Memory Usage on Teensy 4.1:
FLASH: code:63912, data:140232, headers:8844 free for files:7913476
RAM1: variables:209248, code:60440, padding:5096 free for local variables:249504
RAM2: variables:12416 free for malloc/new:511872
Using Arduino IDE 2.3.6
Thanks, Graham.
I'm writing an emulator and putting the entire 64K memory map in an array. When compiled the array appears to reside in RAM2, is there any way to get it into RAM1 as I belive this would be up to four times faster. I think there should be sufficient space there.
uint8_t memory[0x10000];
Memory Usage on Teensy 4.1:
FLASH: code:63912, data:140232, headers:8844 free for files:7913476
RAM1: variables:209248, code:60440, padding:5096 free for local variables:249504
RAM2: variables:12416 free for malloc/new:511872
Using Arduino IDE 2.3.6
Thanks, Graham.
Last edited: