Featured Post

Why this blog? What's it about? What's the format?

FORMAT For Fall 2021, the focus is mainly on Python, C++, and Digital Hardware There are videos here from other sources / creators There are...

Right click image below, then "open link in new tab"

Right click image below, then "open link in new tab"
Right click image above, then "open link in new tab"

Search This Blog

Thursday, September 23, 2021

Compiler

 From the link:

"A compiler is a computer program that translates computer code written in one programming language into another programming language. 

  • The first language is called the source language, and the code is called SOURCE CODE
  • The second language is called the target and can usually be understood by computers. In that case, the instructions become MACHINE CODE.

A compiler usually has 3 STEPS:

  1. It reads the text and makes notes about how the instructions go together. If the instructions don't make sense, it will try to tell the programmer
  2. Then it will use what it knows about the target language to make the instructions fit better
  3. It then writes down the instructions in the target language. If the source instructions are on different pages, it may have to compile several before it can write everything down"

No comments:

Post a Comment