A compiler turns a program’s meaning into instructions a chosen processor can execute. It does not usually replace each source word with one machine instruction. Instead, it builds several representations that expose structure, check rules and support transformations. Consider the expression y = x * 2 + 1, using unsigned 32-bit arithmetic. Multiplication happens before addition, so the structure says to multiply x by 2 and then add 1. A front end first recognizes names, numbers and operators, organizes them into a syntax tree, and checks their types. Knowing the type matters: integer and floating-point operations have different rules.
Things that make you wonder