The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+14 votes

Which one of the following is NOT performed during compilation?

  1. Dynamic memory allocation
  2. Type checking
  3. Symbol table management
  4. Inline expansion
asked in Compiler Design by Veteran (112k points) | 1.4k views

3 Answers

+27 votes
Best answer

Dynamic means- at runtime. Dynamic memory allocation happens during the execution time and hence (A) is the answer.

answered by Veteran (370k points)
edited by

if option D) will be macro expansion, in place of inline expansion, then ans can be any one of A) or D) .


@srestha maam

what is the differnce between macro expansion and inline expansion

In which stage they happens ??


Macro is preprocessor. Macro expansion happens before even compilation started
+18 votes

Symbol table management is done during compitation to store and retrieve the information
about tokens.

Type checking is one of the check performed during semantic analysis of
Inline expansion is a compiler optimization that replaces a function call by the bodyof
respective function.
Dynamic memory allocation is when an executing pregoram request the oprating system to
give it a block of main memory, so ti is performed during sum time not during complete time.

answered by Active (2.1k points)
+2 votes
Dynamic memory allocation happens at run time only. Compiler only compiles instructions for dynamic memory allocation like malloc(), calloc().
answered by Loyal (8.8k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

44,511 questions
49,969 answers
65,915 users