Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are ELF programs smaller than a.out programs?

a.out Elf Programs smaller
0
Posted

Are ELF programs smaller than a.out programs?

0

The standard compiler tools in earlier releases of BSD/OS did not create programs that used shared libraries. The standard compiler tools in BSD/OS 4.x do create programs that use dynamically linked shared libraries by default, so programs built under BSD/OS 4.x will usually shrink. In some cases, they may shrink drastically. If you build your programs to use statically linked shared libraries with shlicc, then the ELF versions of your programs will probably be about the same size as the a.out versions. ELF data structure overhead is greater than a.out overhead, but ELF files don’t require alignment padding, so that often saves space. The very smallest programs will usually be bigger as ELF files, but larger programs may be smaller as ELF files. ELF programs do use a little less memory than a.out programs. Because the stack, text and data segments are normally mapped by a single page table page, there is usually one less page of kernel memory devoted to the ELF version of a program tha

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123