I am working on a Knowledge base project and would like to store an index in DMAMEM which links to a record number on an SD card.
I have used the following in my code
DMAMEM word KBIndex[50000];
When I compile this, this single line uses 200000 bytes of space in RAM2 not the 100000 bytes that I was expecting.
Does this mean a word occupies 4 bytes of memory, it the 2 bytes expected.
I am using Teensy 4.1
Any comments welcome please.
Keith
I have used the following in my code
DMAMEM word KBIndex[50000];
When I compile this, this single line uses 200000 bytes of space in RAM2 not the 100000 bytes that I was expecting.
Does this mean a word occupies 4 bytes of memory, it the 2 bytes expected.
I am using Teensy 4.1
Any comments welcome please.
Keith