How do I tell how much memory my program uses?
When using the Keil compiler, one of the build outputs is the memory usage of the program. Check the Console window of the Simplicity Studio IDE, and the 4th to last line of the build will show the "Program Size." It will show the Data memory usage, xdata usage, const size, and code size. Here's a sample Program Size line that shows data usage of 10.1 bytes and code size of 340 bytes:
Program Size: data=10.1 xdata=0 const=0 code=340
Note that the size will not be output if the build is not successful.