Computer Language Machine Languae Low-level Language High-level Language Machine Language First computer language. Computer can understand and execute immediately Compose of binary number opcode : what to do with the data operand : where to get the data 0101 Opcode 00111 Operand1 11110 Operand2 Low-level Language We can called Symbolic language Same structure as maching language Use symbolic instead of binary number Program must be compiled to be machine language by using Translator program Add X, Y High-level Language Develop from symbolic language. Programmer do not need to know how computer works in detail. Programmer can write program by learning syntax of language. Example : - Pascal, C, Cobol, Java X:=X+Y; Data Representation Switching circuit : ON, OFF Binary system : 0, 1 Binary -> Decimal Decimal -> Binary Negation Addition Multiplication Division Data Representation Signed Integer Sign Magnitude One’s Complement Two’s Complement Floating-point Character ASCII EBCDIC Unicode
© Copyright 2024 ExpyDoc