Modular programming and compiling a C program in linux -
so have been studying modular programming compiles each file of program @ time. have file.c , other.c both in same program. compile it, in prompt
$gcc file.c other.c -c
using -c flag compile .o files (file.o , other.o) , when happens translate (compile) executable using
$gcc file.o other.o -o
i know can , skip middle part shows everywhere, first , compile executable, can't understand @ all.
may know why?
if working on project several modules, don't want recompile modules if of them have been modified. final linking command needed. build tools such make used keep track of modules need compiled or recompiled.
Comments
Post a Comment