C021TV-I3-S1
I.3 Programming Higher level language and compilation Bugs Machine code Higher level language and compilation Bugs Humans and languages
A computer is… Gérard Berry said: A computer is completely stupid Computers/smartphones/tablet computers are not magical objects. They are very simple (but very fast) electronic devices. Cf http://rue89.nouvelobs.com/2016/08/26/ gerard-berry-lordinateur-est-completement-con-257428
Machine code A computer is stupid, so it can only obey very simple orders (tasks, instructions) depending on the GPU model: the assembler. These instructions are limited: moving global memory to local memory comparing two values adding two values jumping to another label of the program . . .
Machine code: example ⇒ we don’t want to write it this way! movl movl cmpl jle movl addl $0, -8(%rbp) $7, -4(%rbp) $0, -4(%rbp) .L2 -4(%rbp), %eax %eax, -8(%rbp) .L2: movl -8(%rbp), %eax ⇒ we don’t want to write it this way!