O'Reilly logo

Compilers: Principles and Practice by Himanshu B. Dave, Parag H. Dave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.1 Run-Time Storage Allocation

Before we discuss Code Generation phase of a compiler, we should be aware of how the code and data are stored in the memory of the computer at run-time. In case of embedded systems, where the computer is a part of a complete device, instrument or system, the program resides permanently in a non-volatile memory.

For small, one-time applications a load-and-go scheme shown in Fig. 7.3 may be used, where the source code editor, compiler and/or interpreter, the run-time library and the user's application program – both its source code version and translated version – all reside in the main memory of the computer.

 

 

Fig. 7.3 Load-and-Go scheme. Left-hand side shows compiler-based (e.g. Turbo-Pascal) and right-hand ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required