Go to the first, previous, next, last section, table of contents.


size


size [ -A | -B | --format=compatibility ]
     [ --help ]  [ -d | -o | -x | --radix=number ]
     [ --target=bfdname ]  [ -V | --version ]  
     [ objfile... ]

The GNU size utility lists the section sizes--and the total size--for each of the object or archive files objfile in its argument list. By default, one line of output is generated for each object file or each module in an archive.

objfile... are the object files to be examined. If none are specified, the file a.out will be used.

The command line options have the following meanings:

The GNU size는 오브젝트 파일이거나 아키이브 파일인 objfile의 각 섹션의 크기와 총합을 출력한다. 기본 행동으로 각 오브젝트 파일이나 아카이브의 멤버 마다 한 줄이 출력된다.

objfile...은 살펴볼 오브젝트 파일이다. 지정하지 않으면 파일 a.out이 사용된다.

명령행 옵션은 다음과 같다.

-A
-B
--format=compatibility
Using one of these options, you can choose whether the output from GNU size resembles output from System V size (using `-A', or `--format=sysv'), or Berkeley size (using `-B', or `--format=berkeley'). The default is the one-line format similar to Berkeley's. Here is an example of the Berkeley (default) format of output from size:
GNU size이 (`-A'`--format=sysv') System V size나 (`-B'`--format=berkeley') Berkeley size 중 어떤 형식으로 출력을 할지 정한다. 기본값은 Berkeley와 유사한 한 줄 형식이다.
$ size --format=Berkeley ranlib size
text    data    bss     dec     hex     filename
294880  81920   11592   388392  5ed28   ranlib
294880  81920   11888   388688  5ee50   size
This is the same data, but displayed closer to System V conventions:
다음은 같은 자료를 System V 형식으로 출력한 것이다.
$ size --format=SysV ranlib size
ranlib  :
section         size         addr
.text         294880         8192       
.data          81920       303104       
.bss           11592       385024       
Total         388392    

size  :
section         size         addr
.text         294880         8192       
.data          81920       303104       
.bss           11888       385024       
Total         388688    
--help
Show a summary of acceptable arguments and options.
가능한 아규먼트와 옵션의 간단한 설명을 출력한다.
-d
-o
-x
--radix=number
Using one of these options, you can control whether the size of each section is given in decimal (`-d', or `--radix=10'); octal (`-o', or `--radix=8'); or hexadecimal (`-x', or `--radix=16'). In `--radix=number', only the three values (8, 10, 16) are supported. The total size is always given in two radices; decimal and hexadecimal for `-d' or `-x' output, or octal and hexadecimal if you're using `-o'.
각 심볼의 크기가 (`-d'`--radix=10') 10 진수, (`-o'`--radix=8') 8 진수, (`-x'`--radix=16') 16 진수 중 어떤 진수로 출력될지를 정한다. `--radix=number'에는 오직 3 값만을 (8, 10, 16) 사용할 수 있다. 총크기는 항상 두가지 진수로 출력된다. `-d'`-x'는 10 진수와 16 진수, `-o'은 8 진수와 16 진수로 출력된다.
--target=bfdname
Specify that the object-code format for objfile is bfdname. This option may not be necessary; size can automatically recognize many formats. See section Target Selection, for more information.
objfile의 오브젝트 코드 형식을 bfdname로 한다. 이 옵션은 필수적이지는 않다. size는 자동으로 많은 형식을 알아낸다. Target Selection를 참고하라.
-V
--version
Display the version number of size.
size의 버전을 출력한다.


Go to the first, previous, next, last section, table of contents.