DEV Community

Hyporos
Hyporos

Posted on

SPO600 - Week 5 & 6

Week 6 was a holiday and there was no class or assigned work, so I will be bundling it up together with week 5.

Week 5 taught me about compiling, building, and making programs and code. The C compiler specifically has a lot about it. I learned about the five steps it takes to successfully compile, listed:

  • Preprocessing (handles directives to build a source file)
  • Compilation (c code converted to assembler)
  • Optimization (handles optimizing code)
  • Assembly (converts assembly code to binary object code)
  • Linking (connects code to functions)

This not only applies to the C language, but other languages which compile into binary object code such as C++ and COBOL.

I had also learned about feature flags, options to include when compiling which will affect the process. An example is -00, which disables optimizations.

Additionally, building software was taught and demonstrated. After building it was necessary to make the file using a makefile so it could be run. It is all a similar process.

Top comments (0)