Is there some way using binutils tools to get this? For example:
// x.cc
typedef long long MyInt;
int main(int argc, char* argv[]) {
// blah blah blah
}
Then:
g++ -g x.cc -o a.out
How can I analyze a.out to get sizeof(MyInt)? GDB can do it, but I don't want to use GDB because it's really slow for large binaries.