<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Which command can be used to check a executable file's static memory size? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800121#M99956</link>
    <description>Beleive it or not, the command is called size. As in:&lt;BR /&gt; &lt;BR /&gt;size /usr/bin/fbackup&lt;BR /&gt; &lt;BR /&gt;You can also get details with chatr:&lt;BR /&gt; &lt;BR /&gt;chatr /usr/bin/frecover</description>
    <pubDate>Mon, 05 Jun 2006 08:15:47 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-06-05T08:15:47Z</dc:date>
    <item>
      <title>Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800120#M99955</link>
      <description>Thanks.</description>
      <pubDate>Mon, 05 Jun 2006 08:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800120#M99955</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2006-06-05T08:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800121#M99956</link>
      <description>Beleive it or not, the command is called size. As in:&lt;BR /&gt; &lt;BR /&gt;size /usr/bin/fbackup&lt;BR /&gt; &lt;BR /&gt;You can also get details with chatr:&lt;BR /&gt; &lt;BR /&gt;chatr /usr/bin/frecover</description>
      <pubDate>Mon, 05 Jun 2006 08:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800121#M99956</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-05T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800122#M99957</link>
      <description>What is the unit of section sizes?</description>
      <pubDate>Mon, 05 Jun 2006 20:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800122#M99957</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2006-06-05T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800123#M99958</link>
      <description>&amp;gt;What is the unit of section sizes?&lt;BR /&gt;&lt;BR /&gt;If you read size(1), you'll see it's in decimal bytes, unless you use -x for hex.</description>
      <pubDate>Mon, 05 Jun 2006 22:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800123#M99958</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-06-05T22:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800124#M99959</link>
      <description>I have a c program:&lt;BR /&gt;&amp;gt; cat testmem.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;  {&lt;BR /&gt;    float b[67106210];&lt;BR /&gt;    b[1]=20.0;&lt;BR /&gt;    printf("%f\n", b[1]);&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;The array size is about 67106210*4=268,424,840Bytest.&lt;BR /&gt;&lt;BR /&gt;After compiled (cc testmem.c -o testmem.out'), I got testmem.out.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; size testmem.out&lt;BR /&gt;   text    data     bss     dec     hex filename&lt;BR /&gt;   7662     128      84    7874    1ec2 testmem.out&lt;BR /&gt;&lt;BR /&gt;&amp;gt; size -x testmem.out&lt;BR /&gt;   text    data     bss     dec     hex filename&lt;BR /&gt; 0x1dee    0x80    0x54    7874    1ec2 testmem.out&lt;BR /&gt;&lt;BR /&gt;How to find 268,424,840 in the output of size?&lt;/STDIO.H&gt;</description>
      <pubDate>Sun, 11 Jun 2006 08:39:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800124#M99959</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2006-06-11T08:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800125#M99960</link>
      <description>&amp;gt;How to find 268,424,840 in the output of size?&lt;BR /&gt;&lt;BR /&gt;You can't.  That isn't a "static" size since auto variables are allocated on the stack.  If you move it to file scope, you'll see it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;void main()&lt;BR /&gt;&lt;BR /&gt;This is illegal, it must be "int main()".</description>
      <pubDate>Mon, 12 Jun 2006 17:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800125#M99960</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-06-12T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800126#M99961</link>
      <description>I modified the source:&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;float b[67108863];&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;  {&lt;BR /&gt;    b[1]=20.0;&lt;BR /&gt;    printf("%f\n", b[1]);&lt;BR /&gt;    return 1;&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;then I got the output of size:&lt;BR /&gt;&amp;gt; size testmem.out&lt;BR /&gt;   text    data     bss     dec     hex filename&lt;BR /&gt;   7650     128 268435556       268443334       10001ec6        testmem.out&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 12 Jun 2006 19:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800126#M99961</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2006-06-12T19:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Which command can be used to check a executable file's static memory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800127#M99962</link>
      <description>&amp;gt;return 1;&lt;BR /&gt;&lt;BR /&gt;To return success, you return 0.&lt;BR /&gt;&lt;BR /&gt;If you really want to know the frame sizes, you could look at:&lt;BR /&gt;/usr/ccs/bin/odump -unwind a.out&lt;BR /&gt;(You take the hex size and multiply by 8.)&lt;BR /&gt;&lt;BR /&gt;For ELF files:&lt;BR /&gt;/usr/ccs/bin/elfdump -U a.out&lt;BR /&gt;(For PA64, hex size * 8.  For IPF, it doesn't appear to be listed and you would have to disassemble the code.)</description>
      <pubDate>Mon, 12 Jun 2006 20:56:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/which-command-can-be-used-to-check-a-executable-file-s-static/m-p/3800127#M99962</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-06-12T20:56:07Z</dc:date>
    </item>
  </channel>
</rss>

