Having the source compiled you can switch to the "disassembly" view where you can see the bytecode dump together with the relative addresses --> last address is approximately size of the program.
Memory consumption of static variables can be estimated by yourself (e.g. an integer array with a size of of 20x100 occupies approx 4 kbyte). Temporary variable usage is insignificant, compared to program store and static variables.