1 2 3 4 5 6 7 8 9 | int myintvar = 5; int func0 () { return ++myintvar; } int func1 (int i) { return func0() * i; } |
1 2 3 4 5 6 7 8 9 | $ xlC -qpic a.C -qmkshrobj -o libtest.a $ dump -Tv libtest.a ***Loader Symbol Table Information*** [Index] Value Scn IMEX Sclass Type IMPid Name [0] 0x20000280 .data EXP RW SECdef [noIMid] myintvar [1] 0x20000284 .data EXP DS SECdef [noIMid] func0__Fv [2] 0x20000290 .data EXP DS SECdef [noIMid] func1__Fi |
1 2 3 4 5 6 7 8 9 | static int myintvar = 5; static int func0 () { return ++myintvar; } int func1 (int i) { return func0() * i; } |
1 2 3 4 5 6 7 | $ xlC -qpic a.C -qmkshrobj -o libtest.a $ dump -Tv libtest.a ***Loader Symbol Table Information*** [Index] Value Scn IMEX Sclass Type IMPid Name [0] 0x20000284 .data EXP DS SECdef [noIMid] func1__Fi |
1 | extern int myintvar; |
1 2 3 4 5 | int myintvar __attribute__ ((visibility ("hidden"))); int __attribute__ ((visibility ("hidden"))) func0 () { return ++myintvar; } ... |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |