next Makefiles
up AVR-Specific Commands
previous rprintf


Program Memory Directives

The AVR microcontrollers generally have a lot more FLASH memory for storing programs than they have RAM for storing data when the programs are running. Strings can quickly use up a lot of memory, therefore if you are using a lot of strings that do not need to change during the course of program execution, it makes sense to store them in program memory, and not in RAM. Several functions are available for this. One of the simplest to use is rprintfProgStrM():

rprintfProgStrM("Hello!");  // print a string that is automatically stored in program memory


next Makefiles
up AVR-Specific Commands
previous rprintf

Copyright © 2004-07-05
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University