Open
Description
AVR arduinos define RAMSTART and RAMEND, Due defines IRAM0_SIZE and IRAM0_ADDR, and Zero defines HMCRAMC0_SIZE and HMCRAM0_ADDR. (All via the Atmel include files...)
For the sake of sketches that want to run on all platforms, and want to modify their memory consumption based on how much memory is available (ie in buffers; similar to the way that HarwareSerial sizes the ISR buffers), it would be nice to have common symbols that would allow a programmer to determine memory size. (probably RAMSTART and RAMEND, since they're already in use. I had to dig to find the SAM symbols.)