{
    "mode": "man",
    "parameter": "x86_64-linux-gnu-size",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/x86_64-linux-gnu-size/1/json",
    "generated": "2026-05-30T06:07:20Z",
    "synopsis": "size [-A|-B|-G|--format=compatibility]\n[--help]\n[-d|-o|-x|--radix=number]\n[--common]\n[-t|--totals]\n[--target=bfdname] [-V|--version]\n[objfile...]",
    "sections": {
        "NAME": {
            "content": "size - list section sizes and total size of binary files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "size [-A|-B|-G|--format=compatibility]\n[--help]\n[-d|-o|-x|--radix=number]\n[--common]\n[-t|--totals]\n[--target=bfdname] [-V|--version]\n[objfile...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The GNU size utility lists the section sizes and the total size for each of the binary files\nobjfile on its argument list.  By default, one line of output is generated for each file or\neach module if the file is an archive.\n\nobjfile... are the files to be examined.  If none are specified, the file \"a.out\" will be\nused instead.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The command-line options have the following meanings:\n",
            "subsections": [
                {
                    "name": "-A",
                    "content": "",
                    "flag": "-A"
                },
                {
                    "name": "-B",
                    "content": "",
                    "flag": "-B"
                },
                {
                    "name": "-G",
                    "content": "--format=compatibility\nUsing one of these options, you can choose whether the output from GNU size resembles\noutput from System V size (using -A, or --format=sysv), or Berkeley size (using -B, or\n--format=berkeley).  The default is the one-line format similar to Berkeley's.\nAlternatively, you can choose the GNU format output (using -G, or --format=gnu), this is\nsimilar to Berkeley's output format, but sizes are counted differently.\n\nHere is an example of the Berkeley (default) format of output from size:\n\n$ size --format=Berkeley ranlib size\ntext    data     bss     dec     hex filename\n294880   81920   11592  388392   5ed28 ranlib\n294880   81920   11888  388688   5ee50 size\n\nThe Berkeley style output counts read only data in the \"text\" column, not in the \"data\"\ncolumn, the \"dec\" and \"hex\" columns both display the sum of the \"text\", \"data\", and \"bss\"\ncolumns in decimal and hexadecimal respectively.\n\nThe GNU format counts read only data in the \"data\" column, not the \"text\" column, and\nonly displays the sum of the \"text\", \"data\", and \"bss\" columns once, in the \"total\"\ncolumn.  The --radix option can be used to change the number base for all columns.  Here\nis the same data displayed with GNU conventions:\n\n$ size --format=GNU ranlib size\ntext       data        bss      total filename\n279880      96920      11592     388392 ranlib\n279880      96920      11888     388688 size\n\nThis is the same data, but displayed closer to System V conventions:\n\n$ size --format=SysV ranlib size\nranlib  :\nsection         size         addr\n.text         294880         8192\n.data          81920       303104\n.bss           11592       385024\nTotal         388392\n\n\nsize  :\nsection         size         addr\n.text         294880         8192\n.data          81920       303104\n.bss           11888       385024\nTotal         388688\n",
                    "flag": "-G"
                },
                {
                    "name": "--help",
                    "content": "Show a summary of acceptable arguments and options.\n",
                    "long": "--help"
                },
                {
                    "name": "-d",
                    "content": "",
                    "flag": "-d"
                },
                {
                    "name": "-o",
                    "content": "",
                    "flag": "-o"
                },
                {
                    "name": "-x",
                    "content": "--radix=number\nUsing one of these options, you can control whether the size of each section is given in\ndecimal (-d, or --radix=10); octal (-o, or --radix=8); or hexadecimal (-x, or\n--radix=16).  In --radix=number, only the three values (8, 10, 16) are supported.  The\ntotal size is always given in two radices; decimal and hexadecimal for -d or -x output,\nor octal and hexadecimal if you're using -o.\n",
                    "flag": "-x"
                },
                {
                    "name": "--common",
                    "content": "Print total size of common symbols in each file.  When using Berkeley or GNU format these\nare included in the bss size.\n",
                    "long": "--common"
                },
                {
                    "name": "-t",
                    "content": "",
                    "flag": "-t"
                },
                {
                    "name": "--totals",
                    "content": "Show totals of all objects listed (Berkeley or GNU format mode only).\n\n--target=bfdname\nSpecify that the object-code format for objfile is bfdname.  This option may not be\nnecessary; size can automatically recognize many formats.\n",
                    "long": "--totals"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                },
                {
                    "name": "--version",
                    "content": "Display the version number of size.\n\n@file\nRead command-line options from file.  The options read are inserted in place of the\noriginal @file option.  If file does not exist, or cannot be read, then the option will\nbe treated literally, and not removed.\n\nOptions in file are separated by whitespace.  A whitespace character may be included in\nan option by surrounding the entire option in either single or double quotes.  Any\ncharacter (including a backslash) may be included by prefixing the character to be\nincluded with a backslash.  The file may itself contain additional @file options; any\nsuch options will be processed recursively.\n",
                    "long": "--version"
                }
            ]
        },
        "SEE ALSO": {
            "content": "ar(1), objdump(1), readelf(1), and the Info entries for binutils.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 1991-2022 Free Software Foundation, Inc.\n\nPermission is granted to copy, distribute and/or modify this document under the terms of the\nGNU Free Documentation License, Version 1.3 or any later version published by the Free\nSoftware Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-\nCover Texts.  A copy of the license is included in the section entitled \"GNU Free\nDocumentation License\".\n\n\n\nbinutils-2.38                                2025-12-03                                      SIZE(1)",
            "subsections": []
        }
    },
    "summary": "size - list section sizes and total size of binary files",
    "flags": [
        {
            "flag": "-A",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-B",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-G",
            "long": null,
            "arg": null,
            "description": "--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. Alternatively, you can choose the GNU format output (using -G, or --format=gnu), this is similar to Berkeley's output format, but sizes are counted differently. Here is an example of the Berkeley (default) format of output from size: $ size --format=Berkeley ranlib size text data bss dec hex filename 294880 81920 11592 388392 5ed28 ranlib 294880 81920 11888 388688 5ee50 size The Berkeley style output counts read only data in the \"text\" column, not in the \"data\" column, the \"dec\" and \"hex\" columns both display the sum of the \"text\", \"data\", and \"bss\" columns in decimal and hexadecimal respectively. The GNU format counts read only data in the \"data\" column, not the \"text\" column, and only displays the sum of the \"text\", \"data\", and \"bss\" columns once, in the \"total\" column. The --radix option can be used to change the number base for all columns. Here is the same data displayed with GNU conventions: $ size --format=GNU ranlib size text data bss total filename 279880 96920 11592 388392 ranlib 279880 96920 11888 388688 size This is the same data, but displayed closer to System V conventions: $ 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"
        },
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Show a summary of acceptable arguments and options."
        },
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-x",
            "long": null,
            "arg": null,
            "description": "--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."
        },
        {
            "flag": "",
            "long": "--common",
            "arg": null,
            "description": "Print total size of common symbols in each file. When using Berkeley or GNU format these are included in the bss size."
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--totals",
            "arg": null,
            "description": "Show totals of all objects listed (Berkeley or GNU format mode only). --target=bfdname Specify that the object-code format for objfile is bfdname. This option may not be necessary; size can automatically recognize many formats."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display the version number of size. @file Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed. Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ar",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ar/1/json"
        },
        {
            "name": "objdump",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/objdump/1/json"
        },
        {
            "name": "readelf",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/readelf/1/json"
        }
    ]
}