The GATE Grind

GATE 2014 CS (CS2) – Question 28

Compiler Design · Runtime Environments · 1 mark · Multiple choice

Which is NOT performed during compilation?

  1. Dynamic memory allocation
  2. Type checking
  3. Symbol-table management
  4. Inline expansion

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) Dynamic memory allocation

Explanation

Compilation translates the program; it does not run it. Type checking, symbol-table management and inline expansion are all carried out by the compiler at compile time.

Dynamic memory allocation (for example a runtime malloc call) happens while the program executes. The compiler only emits the code that will request the memory later.

Therefore **dynamic memory allocation, A**, is the operation not performed during compilation.