Which language do computers talk?  Why?  Is it easy for human beings?

BINARY CODE

 

 

Programming languages, compilers & interpreters

High level languages

SOURCE CODE

C, C++

Java

SOURCE CODE

Javascript

 

SOURCE CODE

LEGO EV3 Mindstorm

Scratch 

Low level languages

ASSEMBLY CODE    
translated with... ASSEMBLER  COMPILER INTERPRETER

into...

Machine language

MACHINE CODE

00101010

MACHINE CODE

00101010

MACHINE CODE

00101010

 

Examples of code

High level language C ASSEMBLY CODE HEXADECIMAL CODE BINARY CODE
 #include <stdio.h> LDA #00   0xA9 0x00 10101001 00000000
 int main() STA $01 0x85 0x01 10000101 00000001 
 { LDA #02   0xA9 0x02 10101001 00000010 
    // printf() displays the string inside quotation STA $02  0x85 0x02 10000101 00000010
    printf("Hello, World!"); LDY #00 0xA0 0x00 10100000 00000000
    return 0; LDA #01 0xA9 0x01 10101001 00000001
 } STA $01 0x91 0x01  10010001 00000001 
 different program same program translated into different codes   

 

 

How a CPU works