a compiler usually has three steps. it reads the text and makes notes about how the instructions go together. if the instructions don't make sense, it will try to tell the programmer. then it will use what it knows about the target language to make the instructions fit better. it then writes down the instructions in the target language. if the source instructions are on different pages, it may have to compile several before it can write everything down.