Skip to main content
tag terminology, quoted text as block quote, state source upfront, one extraneous article less
Source Link

I was reading about Run-Time Environments and.
In the Dragon book (2nd ed.) I came across the following explanationpresentation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

[To implement abstractions, the] compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables…

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

The text has been taken from the Dragon book, 2nd edition.

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

The text has been taken from the Dragon book, 2nd edition.

I was reading about Run-Time Environments.
In the Dragon book (2nd ed.) I came across the following presentation:

[To implement abstractions, the] compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables…

so I'm getting confused about points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?
added 48 characters in body
Source Link

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

The text has been taken from the Dragon book, 2nd edition.

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

The text has been taken from the Dragon book, 2nd edition.

deleted 1 character in body
Source Link

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes it'sits target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes it's target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?

I was reading about Run-Time Environments and came across the following explanation:

"Compiler creates and manages a run-time environment in which it assumes its target programs are being executed. This environment deals with a variety of issues such as the layout and allocation of storage locations for the objects named in the source program, the mechanisms used by the target program to access variables...

so I'm getting confused about a points highlighted above:

  • How does compiler execute the code, it is only supposed to generate the intermediate code right?
  • And does it create runtime environment? I mean there's not a virtual machine that the program runs on, it just runs on your computer right? When does it create a runtime environment?
  • Isn't memory managed by the operating system? Why is allocation of storage done by the compiler and at what point? Probably what variables are needed and how much may be known by the compiler but, how does it communicate this information to the OS?
Source Link
Loading