How program execute?

  1. The final product of the compilation process (广义的编译,包括预处理、编译、汇编和链接) is an executable program, which consists of a set of machine language instructions.
  2. When you start a program, the operating system loads these instructions into the computer's memory so that each instructon has a particular memory address.
  3. The computer then goes through these instructions step-by-step. Sometimes, as when you have a loop or a branching statement, program execution skips over instructions, jumping backward or forward to a particular address.

你可能感兴趣的:(Book)