From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Size optimization for objects Date: Mon, 01 Jul 2013 18:28:24 +0300 Organization: Tidorum Ltd Message-ID: References: <9cbe0ad4-f54c-4c99-ba58-4db027ae962e@googlegroups.com> <70b1d2b0-d5ab-431e-84b9-9f00af08dbe2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net YO2Bbdc6eVKOMsdD43CVUQHyrH0Gxk+dDqfkze80BduPN2cPo5 Cancel-Lock: sha1:Z4Y6zNqxHKBfGvqDO6vuPIP58y8= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:16016 Date: 2013-07-01T18:28:24+03:00 List-Id: On 13-07-01 17:35 , Rego, P. wrote: > I am still having some difficult in understand the information > generated by nm. It generates something like > 00c038d6 ff42d001 D ___gl_locking_policy > > The first column I think it's the "symbol value", the second column I > guess it's the size of the symbol. The other columns are ok, since > the man nm explains quite well. What does "symbol value" mean? In the linker world, "symbol value" usually means the address of the object or subprogram identified by the symbol. However, sometimes symbols can also stand for other kinds of values (offsets or sizes), but that is less common. My "nm", on my 64-bit system, generates the value/address as a single column with 16-digit hex values, followed by "D" and other codes in the second column. Perhaps your "nm" separates the 16 hex digits into two 8-digit groups, for easier reading? Are you using 32-bit or 64-bit binaries? > Also, the second column represents the symbol size (in bytes I > presume). >From your example, I doubt that: ff42d001 does not seem a likely size for anything. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .