<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 objdump &amp; readelf help?</p>

```
readelf
```
will indeed help. You can use the
```
-S
```
option; that will show the sizes of all sections.
```
.text
```
is (the bulk of) your executable code.
```
.data
```
and
```
.rodata
```
is your static data. There are other sections too, some of which are used at runtime, others only at link time.