Compiler memory use in bytes for code and data output?

Is there a way to output code and memory use from the compiler (besides -g bytecode) to easily see impact of different code structures rather than run up simulator and use view memory?