how on compilator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

how on compilator

9th Oct 2017, 7:50 AM
Anton Rakoed
Anton Rakoed - avatar
2 Answers
+ 15
To see the full discussion in Stack Overflow (which Apoorva copy and paste it from there) see: [https://stackoverflow.com/documentation/c%2b%2b/4708/compiling-and-building#t=201710090842153967239]
9th Oct 2017, 8:44 AM
Babak
Babak - avatar
+ 9
TheĀ compilerĀ parses the pureĀ C++source code (now without any preprocessor directives) and converts it into assembly code. Then invokes underlying back-end(assembler in toolchain) that assembles that code into machine code producing actual binary file in some format(ELF, COFF, a.out, ...).
9th Oct 2017, 8:21 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar