AMPI: Add script to examine compiled objects for globals
[charm.git] / src / libs / ck-libs / ampi / nm_globals.sh
blob1b7a6feea96f5b92154e48f12abf0519b014fd92
1 #!/bin/bash
2 # This script can be run on a compiled file (.o, .so, .a, linked ELF
3 # binary) to produce a list of symbols representing global variables
4 # potentially of concern for AMPI from a privatization stand-point
6 PROG=$1
8 nm -C $PROG | egrep ' [BbCDdGgSs] ' | grep -v __ioinit