ECS 30 Lecture Notes - Lecture 29: C Standard Library, Object File
Lecture 29
Binary Files
Writing/reading structures
Compilation and execution
Compilation stages
- preprocessor → compiler → assembler → linker
#defineAGE21
Preprocessor stage:
- wherever it sees AGE it will replace with the number (i.e 21)
Compiler stage:
- Gather the assembly code
Assembler
- gather the assembly and transfer to binary code (that we cant read but processor can)
* object file
Linker stage
Link file to libraries that we use (i.e lib C)
Much easier to write multi-byte
object
Binary files are very convenient
for storing big binary objects
Binary good for storage
find more resources at oneclass.com
find more resources at oneclass.com