|
|
sum of segment size and executable size
Hi,
why I am getting different size value if i run "size" command and if i
see using "ls -l" on an object file.
my.c file contains only one empty function
my.c
f()
{
}
The Output of size command on HPUX
$ size my.o
8 + 0 + 0 = 8 ( here 8 is text segment size, rest is 0 )
$ ls -l my.o
-rw-rw-r-- 1 odcqa1 users 696 Dec 30 11:41 my.o
Can any one explain me? Why the size of my.o is larger than total of
it's segment's size.
-Sachin
|
|
0
|
|
|
|
Reply
|
sachin_mzn (21)
|
12/30/2004 6:22:27 AM |
|
sachin_mzn@yahoo.com said the following, on 12/30/04 01:22:
> Hi,
> why I am getting different size value if i run "size" command and if i
> see using "ls -l" on an object file.
>
> my.c file contains only one empty function
> my.c
>
> f()
> {
> }
> The Output of size command on HPUX
>
> $ size my.o
> 8 + 0 + 0 = 8 ( here 8 is text segment size, rest is 0 )
>
> $ ls -l my.o
> -rw-rw-r-- 1 odcqa1 users 696 Dec 30 11:41 my.o
>
> Can any one explain me? Why the size of my.o is larger than total of
> it's segment's size.
>
Because the object file contains header information in addition to the
actual executable code and data. For example, it probably contains
things like a "magic number" (for 'file'), the size data that 'size'
prints, an external symbol table, and so on.
--
Rich Gibbs
rgibbs@alumni.princeton.edu
|
|
0
|
|
|
|
Reply
|
Rich
|
12/30/2004 5:51:35 PM
|
|
|
1 Replies
339 Views
(page loaded in 0.056 seconds)
Similiar Articles: sum of segment size and executable size - comp.unix.programmer ...Hi, why I am getting different size value if i run "size" command and if i see using "ls -l" on an object file. my.c file contains only one empty fun... tar terminates unexpectedly when piped to dd ? - comp.os.linux ...Never mind - when verifying the sum after backuping, I cat'd both the ... sum of segment size and executable size - comp.unix.programmer ... tar terminates unexpectedly ... Segment, Base Address, PM, ... - comp.lang.asm.x86sum of segment size and executable size - comp.unix.programmer ... Segment, Base Address, PM, ... - comp.lang.asm.x86 Sometime ago, I asked here about Segment Base Address. BIOS/Protected Mode - comp.lang.asm.x86sum of segment size and executable size - comp.unix.programmer ... BIOS/Protected Mode - comp.lang.asm.x86... font></font> <br><font face="Courier New,Courier"><font size ... Unix Systems Programming Newbie - exec format error - comp.unix ...sum of segment size and executable size - comp.unix.programmer ... C pipe error - comp.unix.programmer sum of segment ... of shared memory segment - comp.unix ... get virtual memory size of process? - comp.unix.programmer ...System call to get size of shared memory segment - comp.unix ... get virtual memory size of process ... The size of the virtual memory on a system is smaller than the sum of Very fast delimited record parsing with boost - comp.lang.c++ ...If the task is to find the sum of a large table of numbers, then that will ... n', I would copy them to the > address buffer + 3, then read buffer size - disk segment size ... Size of "Hello world" - comp.lang.c++One thing that's often overlooked is in a hosted environment, the size of an executable ... assembly for boot sectors - comp.lang.asm.x86... 007C0H ;Code segment for far ... Paging Long Page - comp.databases.mysqlMemory issues regarding sum of sparse matrices - comp.soft-sys ... I managed to ... Maximum shared memory segment size - comp.unix.solaris Leave the OS with a generious ... the maximum memory size allowed in malloc - comp.lang.cEXE file header prescribe the minimum and maximum memory ... c++ - page 12 ... Maximum shared memory segment size - comp.unix.solaris RAM is much faster than disk! sum of segment size and executable size - comp.unix.programmer ...Hi, why I am getting different size value if i run "size" command and if i see using "ls -l" on an object file. my.c file contains only one empty fun... Unix & Linux: sum of segment size and executable size ...programming.itags.org: Unix & Linux question: sum of segment size and executable size, created at:Wed, 30 Apr 2008 11:48:00 GMT with 514 bytes, last updated: Friday ... 7/24/2012 7:06:24 PM
|
|
|
|
|
|
|
|
|