Professional Documents
Culture Documents
Compiling
Compiling
Linking is the process of taking one or more object files generated by a compiler
and combining them into a single executable file, library file, or another object
file. A linker does linking.
Build is the process of converting source code files into standalone software
artifact(secondary product) that can be run on a computer. It consists of :-
(1) compilation of source code. (Language supporting explicit compilation)
(2) Linking of object code. (Language supporting explicit Linking)
(3) producttion of distribution packages(installers).
(4) Generation of documentation.
(5) Execution of automated tests like unit tests, static analysis tests, and
performance tests.
(6) Generation of reports about errors and warnings during build.
(7) Deployment of distribution packages.
We can manually build a program or automate the process.
(2) Installing :- Well packaged source code will include a special make target
called install. This target will install the final product in a system directory
for use which is usually /usr/local/bin. Ex -
sudo make install