The central processing unit will soon switch to this process so it can fetch, decode, and then execute each machine instruction. If the executable is requested for execution, then the operating system loads it into memory and starts a process. Alternatively, source code may execute within the language's interpreter. ( Machine language programs are translated using an assembler.) The resulting file is called an executable. Therefore, source code may be translated to machine instructions using the language's compiler. Source code needs another computer program to execute because computers can only execute their native machine instructions. Ī computer program in its human-readable form is called source code. Computer programs are one component of software, which also includes documentation and other intangible components. Scheduling, Preemption, Context SwitchingĪ computer program is a sequence or set of instructions in a programming language for a computer to execute.
0 Comments
Leave a Reply. |