COM SCI 31 Lecture Notes - Lecture 2: Machine Code, Bjarne Stroustrup
Document Summary
Lecture 2 4/5: when first writing programs, use english instead of numbers. Assembly language: program is assembled into machine language by an assembler e. g. load price, add fees, store total, halt (price data 42, fees data 13, total. Data) character: each line translates to one machine instruction (one to one translation) tied to a particular machine: fortran (another language) e. g. integer price = 42 integer fees = 13 integer totalcost = price + fees. Higher-level language; advantages: closer to the notation people are more comfortable with; program is shorter; one line with more info; easier to read; not confined to a particular vendor. Program is compiled into machine language by a compiler/(translater: c developed in 1971. Bjarne stroustrup developed a program in 1980 ended up as c++ (java: derivative of: (microsoft developed c#) (others: swift, perl, ruby, python) 2011 revision of iso c++ standard (c++11)