Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用以下命令
nm -B -l -r --size-sort --print-size binaryName| grep ' B '
样本输出:
00000000166140e0 0000000000aae608 B tax_dtl_buf
这00000000166140e0是符号的大小tax_dtl_buf。
00000000166140e0
tax_dtl_buf
谁能解释如何解释这个尺寸?我的意思是如何将其转换为千字节。
实际上0000000000aae608是大小。它采用十六进制表示法。您可以使用标志“-t d”以十进制形式获取它。只需除以 1024 即可得到千字节。