June 2017
Intermediate to advanced
464 pages
11h 54m
English
© Igor Zhirkov 2017
Igor Zhirkov, Low-Level Programming, 10.1007/978-1-4842-2403-8_10
Igor Zhirkov1
(1)Saint Petersburg, Russia
In this chapter we are going to study how to better split your code into multiple files and which relevant language features exist. Having a single file with a mess of functions and type definitions is far from convenient for large projects. Most programs are split into multiple modules. We are going to study which benefits it brings and how each module looks before linkage.
The C compilers historically were written as single-pass programs . It means that they should have traversed the file once and translated it right away. However, it does mean a lot to us. When a function ...
Read now
Unlock full access