comp.lang.ada
 help / color / mirror / Atom feed
From: Noel Duffy <hobcraft-usenet@yahooxtra.co.nz>
Subject: Re: Differences between gnat 4.4.5 and 4.5.1
Date: Thu, 10 Mar 2011 21:36:28 +0000 (UTC)
Date: 2011-03-10T21:36:28+00:00	[thread overview]
Message-ID: <ilbg8r$qgk$1@news.eternal-september.org> (raw)
In-Reply-To: e3a0cb4e-ada6-4da3-b607-9e69e1e0b830@o14g2000prb.googlegroups.com

On Thu, 10 Mar 2011 05:48:25 -0800, Julian Leyh wrote:
> What do "file" and "ldd" tell you about them? Are the sizes more similar
> if you "strip" them?

As I said, I compile with this command:

$ gnatmake -f -Os hello.adb -largs -s

which strips the executables, so the size disparity is for final stripped 
executables. file shows this for Fedora:

$ file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.32, stripped

On Debian:

$ file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.18, stripped

ldd shows that both are dynamically linked against libgnat. I.e, on Fedora:

$ ldd hello
	linux-vdso.so.1 =>  (0x00007fff1b5a3000)
	libgnat-4.5.so => /usr/lib64/libgnat-4.5.so (0x00007f89c2909000)
	libc.so.6 => /lib64/libc.so.6 (0x000000343e600000)
	libm.so.6 => /lib64/libm.so.6 (0x000000343f200000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000343f600000)
	/lib64/ld-linux-x86-64.so.2 (0x000000343e200000)

On Debian:

$ ldd hello
	linux-vdso.so.1 =>  (0x00007fff52d9e000)
	libgnat-4.4.so.1 => /usr/lib/libgnat-4.4.so.1 (0x00007f47c6c2a000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f47c6a14000)
	libc.so.6 => /lib/libc.so.6 (0x00007f47c66b2000)
	libm.so.6 => /lib/libm.so.6 (0x00007f47c6430000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f47c7160000)



  parent reply	other threads:[~2011-03-10 21:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10  6:01 Differences between gnat 4.4.5 and 4.5.1 Noel Duffy
2011-03-10 13:48 ` Julian Leyh
2011-03-10 21:32   ` Mart van de Wege
2011-03-10 21:39     ` Ludovic Brenta
2011-03-11  9:16       ` Mart van de Wege
2011-03-20 20:11       ` Ludovic Brenta
2011-03-21  7:05         ` Noel Duffy
2011-03-21  7:52           ` Ludovic Brenta
2011-03-10 21:42     ` Noel Duffy
2011-03-10 21:36   ` Noel Duffy [this message]
2011-03-21  8:35 ` Dmitry A. Kazakov
2011-03-21 10:16   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox