课程: Complete Guide to C++ Programming Foundations

免费学习该课程!

今天就开通帐号,24,100 门业界名师课程任您挑!

Header and implementation files

Header and implementation files

- [Presenter] It's time to talk about Source and Heather files. But before we do, let me show you how your source code gets compiled into an executable file. This process is performed by a compiler tool chain, which is a pipeline of software tools your code goes through to ultimately produce that executable file. To illustrate how a compiler works, I want to show you three different forms of inputs you may feed to the compiler tool chain in a single software development project. The first case is when you write your C++ source files. Then you feed those files to the compiler, which is the first big program the code goes through. The compiler translates your C++ code into assembly language, which is a human readable version of the native language of the target CPU. So, a new file with assembly code is created. This file is fed to a second program known as the assembler. The assembler produces a so-called object file, which is almost executable, but it may contain just pieces of the…

内容