What brings the computer on:
Electricity, or no Electricity. Those are the only two states.
Everything you do is based on sending a signal, and not sending a signal.
On - 1 - bit
Off - 0 - bit
Combination of 8 Bits is called a Byte
1 Byte is used to represent each character on the keyboard including the space bar, caps lock, and all special symbols.
Microprocessor languages from punch cards - Assembly language (jmp, add, sub,)
High level languages (python, java, css...)
Source code ---> Compiler/Interpreter ---> Object Code/Machine Code (M/C)/ Binary code/ Binary Language?
interpret things into binary
-COMPILER
Compiler vs. Interpreter
Interpreter - Get a command and it does it Line by Line.
Compiler - Finds errors in a ton of code
Interpreters and Compilers are system programs, they are like grammar teachers, an interpreter is a systems program that checks for grammatical errors line by line, and converts the source code into object code, and executes it. Compiler is a systems program that takes the entire source code, checks for errors, and when the whole code is free of syntax errors, it converts the entire code into object code.
Compilers and Interpreters compile
Like a digit
Binary -
00 - A
01 - B
But we can't cover everything;
No comments:
Post a Comment