Trình biên dịch sẽ thực hiện tính năng này bằng cách tạo ra mã có giá trị đầu vào và tìm kiếm các khối mã chính xác để thực hiện, thường là bằng cách tham khảo ý kiến một bảng tra cứu mà có con trỏ đến tất cả các khối mã khác nhau. Vòng lặp: | Low-Level Software 33 Switch blocks Switch blocks also known as n-way conditionals usually take an input value and define multiple code blocks that can get executed for different input values. One or more values are assigned to each code block and the program jumps to the correct code block in runtime based on the incoming input value. The compiler implements this feature by generating code that takes the input value and searches for the correct code block to execute usually by consulting a lookup table that has pointers to all the different code blocks. Loops Loops allow programs to repeatedly execute the same code block any number of times. A loop typically manages a counter that determines the number of iterations already performed or the number of iterations that remain. All loops include some kind of conditional statement that determines when the loop is interrupted. Another way to look at a loop is as a conditional statement that is identical to a conditional block with the difference that the conditional block is executed repeatedly. The process is interrupted when the condition is no longer satisfied. High-Level Languages High-level languages were made to allow programmers to create software without having to worry about the specific hardware platform on which their program would run and without having to worry about all kinds of annoying low-level details that just aren t relevant for most programmers. Assembly language has its advantages but it is virtually impossible to create large and complex software on assembly language alone. High-level languages were made to isolate programmers from the machine and its tiny details as much as possible. The problem with high-level languages is that there are different demands from different people and different fields in the industry. The primary tradeoff is between simplicity and flexibility. Simplicity means that you can write a relatively short program that does exactly what you need it to without having to deal