Describe the basic steps involved in compiling source code into a program.

What will be an ideal response?


The procedure for compiling source code into binary programs is standardized today among most Open Source Software (OSS) developers. Because most source code comes in tarball format, you must uncompress and extract the files. This creates a subdirectory under the current directory containing the source code. In addition, this directory typically contains a README file with information about the program and an INSTALL file with instructions for installation.?While inside the source code directory, the first step to installation is to run theconfigure program. This performs a preliminary check for system requirements and creates a list of what to compile inside a file called Makefile in the current directory.?Next, you can type the make command, which looks for the Makefile file and uses the information in it to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture. For example, software written in the C programming language is compiled using the GNU C Compiler (gcc). After compilation, the binary files the program comprises remain in the source code directory. To copy the files to the appropriate location on the filesystem, such as a directory listed in the PATH variable, you must type make install.?After the program has been compiled and copied to the correct location on the filesystem, you can remove the source code directory and its contents from the system.

Computer Science & Information Technology

You might also like to view...

You have a program with a class that is separated into files. The implementation has been changed. Of the interface file, the implementation file and the application file, which must be recompiled?

a. Only the interface? b. Only the implementation? c. Only the Application? d. None of the above? e. Some of the above?

Computer Science & Information Technology

________ statistics allow the user to group records and analyze data

Fill in the blank(s) with correct word

Computer Science & Information Technology

An index and a table of contents are terms that refer to the same thing

Indicate whether the statement is true or false

Computer Science & Information Technology

Bluetooth devices need to be within the same line of sight.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology