In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux size command how to use the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will have something to gain after reading this Linux size command article, let's take a look.
1. Brief introduction to Command
The size command, which is used to view the size of the segments and their sum in the target file, library, or executable, is a member of the GNU binary toolset GNU Binutils.
two。 Command format size [- A |-B |-- format=compatibility] [--help] [- d |-o |-x |-- radix=number] [--common] [- t |-- totals] [--target=bfdname] [- V |-- version] [OBJFILE...] Among them OBJFILE... Is a list of files to be tested. If not given, it defaults to a.out. 3. Option description-A-B--format=compatibility controls the output format. -An or-- format=sysv means to use the System V size style, and-B or-- format=berkeley means to use the Berkeley size style. Berkeley size-style output is used by default.
The following is an example of a Berkeley style:
$size-- format=Berkeley ranlib sizetext data bss dec hex filename294880 81920 11592 388392 5ed28 ranlib294880 81920 11888 388688 5ee50 size
The following is an example of a similar System V style:
Size-format=SysV ranlib sizeranlib: section size addr.text 294880 8192.data 81920 303104.bss 11592 385024Total 388392size: section size addr.text 294880 8192.data 81920 303104.bss 11888 385024Total 388688--help display help Information-d-o-x--radix=number controls the binary of the size output-d or-- radix=10 represents decimal -o or-- radix=8 for octal,-x or-- radix=16 for hexadecimal-- common prints the common symbols size of each file-t--totals lists the total size of all files. Note that you can only use Berkeley-style output-- target=bfdname indicates the format of the target file. This option is not necessary because size automatically deduces-V--version display version @ file
Reads command line options from the specified file file. The options in the file are separated by spaces (spaces, TAB, and carriage returns). Options can contain white space characters by enclosing the entire option in single or double quotation marks. Any character, including a backslash, can be included by adding a prefix backslash. The file itself may contain an additional @ file option, which will be processed recursively
4. Common examples
(1) View the size of each segment of the specified program. Take size as an example.
Size / bin/sizetext data bss dec hex filename22565 1428 1360 25353 6309 / bin/size
(2) View the segment size of each target file in the static library. Take libc.an as an example.
Size / usr/lib64/libc.atext data bss dec hex filename233 40 237 ed init-first.o (ex / usr/lib64/libc.a) 1667 0 1667 683 libc-start.o (ex / usr/lib64/libc.a) 64 00 64 40 sysdep.o (ex / usr/lib64/libc.a) 953 00 953 3b9 version.o (ex / usr/lib64/libc.a) 39500 395 18b check_fds.o (ex / usr/lib64/libc.a) 852 8 2192 3052 bec libc-tls.o (ex / usr/lib64/libc.a) 307 00307 133 elf-init.o (ex / usr/lib64/libc.a) 8 00 0 8 8 dso_handle.o (ex / usr/lib64/libc.a) 0 044 4 errno.o (ex / usr/lib64/libc.a). This is the end of the article on "how to use the size command of Linux". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use the size command of Linux". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.