To compilation of a program C/C++ involves three main steps: pré-processador
, compilação
and linkagem
The preprocessor is the first step of the compilation, it examines the written source program and performs certain modifications, based on the compilation directives.
- Joins lines that have been separated by exhaust sequences.
- Removes comments and replaces them with blanks
- Expands macros
- Processes pre-processing directives
Therefore, the preprocessor modifies the source program, which would not yet be ready to be delivered to compiler.
The compiler processes the result of preprocessor and for each unit compilation generates an object file.
it consists of checking that the code is well built according to the grammar of language. After verifying that there is no error
syntactic or semantic it can already generate the code in machine language.
Finally, after preprocessing, compile each source file and generate all the object files we can invoke the Linker.
The Linker is responsible for bringing together all 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 have the knowledge of how to compile
works and how the executable file is generated, and with that baggage
acquired we realize that Unable to change an executable code
without the compilation.
What you may be doing is setting a time for MAINTENANCE
on your daily server, so always at this time the clients would be
disconnected and updates would be made!
Can’t you compile the program without pausing your server? Or compile it on another computer and just upload the executable? You’d only need to pause to trade one executable for the other.
– hugomg
What exactly does this server do with clients and what clients do with the server?
– Victor Stafusa