Role of linking, object files and executables
Posted
by
Tim
on Programmers
See other posts from Programmers
or by Tim
Published on 2011-08-01T03:02:50Z
Indexed on
2011/11/25
10:05 UTC
Read the original article
Hit count: 332
For a C or assembly program that does not require any other library, will linking be necessary? In other words, will conversion from C to Assembly and/or from Assembly to an object file be enough without being followed by linking?
If linking is still needed, what will it do, given that there is just one object file which doesn't need a library to link to?
Relatedly, how different are object files and executable files, given that in Linux, both have file format ELF?
Are object files those ELF files that are not runnable?
Are there some executable files that can be linked to object files? If yes, does it mean dynamical linking of executables to shared libraries?
© Programmers or respective owner