Learning about build system
Posted: Sat Nov 19, 2022 11:12 am
Hello. I am learning about programming and how the source code is being turned into something that I can use to flash the microcontroller with.
Looking at the following image and going step by step:
1. Code goes through preprocessor
2. Code goes through compilation. It is said that during compilation, the code is either turned into assembly code. Is this also true for C projects or the code is being turned straight into object code? Is it possible for me to look at the object code and see how it looks like? Looking at my project build folder, I cannot seem to find anything with .obj or .o extension
3. Code goes through linker after which the .bin project file is generated inside the build folder, is that correct?
I would appreciate if someone could help me understand and comment the process of building and preparing the code. Is assemblder required for all projects, if not, when it is required? Thanks in advance!
-+
Looking at the following image and going step by step:
1. Code goes through preprocessor
2. Code goes through compilation. It is said that during compilation, the code is either turned into assembly code. Is this also true for C projects or the code is being turned straight into object code? Is it possible for me to look at the object code and see how it looks like? Looking at my project build folder, I cannot seem to find anything with .obj or .o extension
3. Code goes through linker after which the .bin project file is generated inside the build folder, is that correct?
I would appreciate if someone could help me understand and comment the process of building and preparing the code. Is assemblder required for all projects, if not, when it is required? Thanks in advance!
-+