The compiling of a C / C ++ program involves three main steps:
pré-processador
,
compilação
and
linkagem
The preprocessor is the first stage of the build, it examines the written source program and performs certain modifications, based on compilation directives.
- Join lines that have been separated by escape sequences.
- Removes comments and replaces them with whitespace
- Expands macros
- Process preprocessing policies
So the preprocessor modifies the source program, which would not yet be ready to be delivered to the compiler .
The compiler processes the preprocessor result and for each compilation unit it generates an object file.
it consists of verifying that the code is well constructed according to the language grammar . After checking that there is no error
syntactic or semantic it can then generate the code in machine language .
Finally, after preprocessing , compiling each source file and generating all the object files we can invoke the linker .
The linker is responsible for joining all of the object files and generating the executable file (can also be used to generate dynamic libraries, such as dlls ).
With the data obtained above, we are aware of how the compilation
works and how the exeuttable file is generated, and with that baggage
we realized that CAN NOT change an executable code
without the compilation.
What you might be doing is setting a time for MAINTENANCE
on your daily server, so always at that time customers would be
disconnected and the updates would be made!