Skip to content

Instantly share code, notes, and snippets.

@1nam
Created January 28, 2020 07:34
Show Gist options
  • Save 1nam/0d4ac50128c4a7f5502b58a17867b54c to your computer and use it in GitHub Desktop.
Save 1nam/0d4ac50128c4a7f5502b58a17867b54c to your computer and use it in GitHub Desktop.
Learning to code.
this is just the most simple way to explain this process
so whats really going on here with code?
human code is called source code computer code is called machine code.
ok so you write code
in your IDE and run that code it
then sends it to the compiler
the compiler makes it readable to the computer its called machine code.
so the compiler reads two codes source code and machine code.
so whats the CPU do then?
it reads and writes to memory and does the math.
OK then what is an executable program?
its your source code that you sent to be generated by the compiler in to machine code its just a list of functions to follow written in binary
so basically 1 and 0 telling it to read write go forward or back so many lines and so on.
yeah ok but how does the possessor work?
the processor already has all the circuitry to do all the functions the binary code allows it to turn off & on or open close circuitry so with out machine code nothing would happen its just a bunch of circuitry waiting to be given instructions.
Note:human readable code is basically a string of text and machine code the computer understands is turned in to ones and zeros by the compiler.
so what your basically doing is turning off and on Micro Transistors with your source code that was turned in to binary by the compiler to be machine code.
example:
you code:{
something here
{
send it to the compiler from your IDE
compiler converts: 01100011 01101111 01100100 01101001 01101110 01100111 00100000 01101001 01110011 00100000 01100110 01110101 01101110
and circuitry are now connected and communicating to the Micro Transistors and there opening and closing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment