<p>I want to be able to get an estimate of how much code &amp; static data is used by my C++ program?</p>

<p>Is there a way to find this out by looking at the executable or object files?  Or perhaps something I can do at runtime?</p>

<p>Will otool help?</p>

I think otool can help. Specifically, "otool -s {segment} {section}" should print out the details. I'm not sure if you can get information about __DATA or __TEXT without specifying a section. Maybe those sizes are reported in the mach header: "otool -h"?
```
```
otool -s  __DATA __data MyApp.bundle/Contents/MacOS/MyApp
otool -s __TEXT __text MyApp.bundle/Contents/MacOS/MyApp
```
```
Anyway, Apple documents what gets copied into each section per-segment here:
Apple's mach-o format documentation