người đàn ông. Khi một người đàn ông trang được truy cập, chương trình định dạng người đàn ông đó tiết kiệm một trang bản sao của các trang người đàn ông định dạng trong NPAC (/ etc / NPAC) thư mục. | Automation Programming and Modifying Source Code 472 Part VI 2. The compiler parses the modified code for correct syntax. This builds a symbol table and creates an intermediate object format. Most symbols have specific memory addresses assigned although symbols defined in other modules such as external variables do not. 3. The last compilation stage linking ties together different files and libraries and links the files by resolving the symbols that hadn t previously been resolved. Executing the Program The output from this program appears in Listing . Listing . Output from the program. sample 1. 1 1 2. 4 8 3. 9 27 4. 16 64 5. 25 125 6. 36 216 7. 49 343 8. 64 512 9. 81 729 10. 100 1000 NOTE To execute a program just type its name at a shell prompt. The output will immediately follow. Building Large Applications C programs can be broken into any number of files as long as no single function spans more than one file. To compile this program you compile each source file into an intermediate object before you link all the objects into a single executable. The -c flag tells the compiler to stop at this stage. During the link stage all the object files should be listed on the command line. Object files are identified by the .0 suffix. Making Libraries with ar If several different programs use the same functions they can be combined in a single library archive. The ar command is used to build a library. When this library is included on the compile line the archive is searched to resolve any external symbols. Listing shows an example of building and using a library. C and C Programming 473 Chapter 23 Listing . Building a large application. gcc -c gcc -c gcc -c ar c gcc -c gcc -o mainprog Large applications can require hundreds of source code files. Compiling and linking these