Thursday, October 29, 2015

Bit/Byte/Compiler/Interpreter/Source/Code/Object/Code

The power button consists of a 0 and a 1 within the circle (hence the semi-circle with the line in it). The zero stands for the off section, while the one stands for the on section of it.

Binary: The main language of a computer. How it receives and executes commands. Consists of a 0 and a 1, and each command consists of eight 0's and 1's in a certain order, unique to each command, letter, number, etc.

Bits and Bytes: A bit is a single unit (0 or a 1) and is arranged to form bytes. A byte is a form of memory unit (gigabyte, terabyte, etc.) and it is consisted of bits, usually in groups of 8.

Compilers and Interpreterscompiler is a computer program (or a set of programs) that transforms source code written in binary into another computer language (usually English). An interpreter is what the name implies, a program that executes and analyzes another program, line by line.

Source Code and Object Code: Source codes are a listing of commands to be gathered together and assembled into a program that is to be executed. An object code is the binary version of the source code. The computer can only understand the object code, and therefore executes programs using it. 

1 comment:

  1. I want to clarify this to you about Compiler and Interpreter. "A compiler searches all the errors of a program and lists them. If the program is error free then it converts the code of program into machine code and then the program can be executed by separate commands. An interpreter checks the errors of a program statement by statement."

    ReplyDelete