search
Log In

Recent questions tagged runtime-environments

2 votes
2 answers
1
Consider the following statements. $S_1:$ The sequence of procedure calls corresponds to a preorder traversal of the activation tree. $S_2:$ The sequence of procedure returns corresponds to a postorder traversal of the activation tree. Which one of the following options is correct? $S_1$ is true and ... $S_2$ is true $S_1$ is true and $S_2$ is true $S_1$ is false and $S_2$ is false
asked Feb 18 in Compiler Design Arjun 770 views
2 votes
3 answers
2
The identification of common sub-expression and replacement of run time computations by compile-time computations is: Local optimization Constant folding Loop Optimization Data flow analysis
asked Mar 31, 2020 in Compiler Design Lakshman Patel RJIT 527 views
0 votes
3 answers
3
Which of the following statement(s) regarding a linker software is/are true ? A function of a linker is to combine several object modules into a single load module. A function of a linker is to replace absolute references in an object module by symbolic references to locations in other modules. Only I Only II Both I and II Neither I nor II
asked Mar 24, 2020 in Compiler Design jothee 659 views
17 votes
3 answers
4
Consider the following statements. Symbol table is accessed only during lexical analysis and syntax analysis. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. Errors violating the condition any variable must be ... of the above statements is/are TRUE? I only I and III only Ⅱ only None of Ⅰ, Ⅱ and Ⅲ
asked Feb 12, 2020 in Compiler Design Arjun 5k views
3 votes
0 answers
5
The task of adjusting programs so that they may be placed in arbitrary core locations is called relocation. This task is often performed by the relocating loaders. Given below are the tasks performed by the relocating loaders. Identify the correct sequence in which the tasks need to be performed. 1. Resolve symbolic references between ... $2 \: 1 \: 3 \: 4$ $3 \: 1 \: 4 \: 2$ $2 \: 1 \: 4 \: 3$
asked Dec 27, 2018 in Compiler Design Ruturaj Mohanty 320 views
1 vote
2 answers
6
1 vote
1 answer
8
Does Heap Allocation support both recursion and dynamic memory allocation? Because,a stack can be implemented using dynamic memory allocation.Please correct me. Test Series answer shows only dynamic memory allocation
asked Nov 3, 2018 in Compiler Design sripo 1k views
1 vote
1 answer
9
Which of the Following is True ? A. Symbol table Construction is during the analysis part of the Compiler. B. Type checking is Done during Syntax Analysis phase C. SDD with only synthesized attribute have an order of evaluation D. Both A and C Please Explain the C part only rest are easy :)
asked Oct 8, 2018 in Compiler Design Na462 380 views
1 vote
0 answers
10
What is runtime enviornment (Is it do anything more than running the program?)? Where Stack Pointer generally needed?Why it is needed runtime and not compile time? Has it any link with interrupts?
asked Sep 10, 2018 in CO and Architecture srestha 344 views
0 votes
3 answers
11
As actual parameters are stored in the Actual parameter field in case of Activation record then where does formal parameters will be stored? f(a,b) { a(e,f) } Here e,f are actual parameters that will be stored in actual parameter field,but where does formal parameters a,b will be stored for f activation record?
asked May 12, 2018 in Compiler Design rahul sharma 5 931 views
0 votes
0 answers
14
In a computing center there are four types of jobs according to their arrival times (in seconds), their priorities and their run times (in seconds); see the table below: -----------------Type 1------ Type 2---- Type 3---- Type 4 arrival ... robin on every priority level - the higher the priority, the sooner they run) scheduling algorithm. [please use a quantum that provides short response time.]
asked Apr 11, 2018 in Operating System ytr567 589 views
1 vote
2 answers
15
2 votes
4 answers
16
Match the following with respect to activation record fields: A 1 → A, D; 2 → B, C B 1 → A, C; 2 → B, D C 1 → B, C; 2 → A, D D 1 → B, D; 2 → A, C Doubt:- Control link points to caller activation record.Can some one confirm?
asked Jan 25, 2018 in Compiler Design rahul sharma 5 1k views
2 votes
4 answers
17
Consider the following statements: S1 : Static allocation can not support recursive function. S2 : Stack allocation can support pointers but can not deallocate storage at run-time. S3 : Heap allocation can support pointers and it can allocate or deallocate storage at run-time. Which of the above statements are true? a S1 and S2 b S2 and S3 c S3 and S1 d S1, S2 and S3
asked Jan 24, 2018 in Compiler Design rahul sharma 5 1.2k views
2 votes
1 answer
19
Consider the following table : ... $a-q, b-r, c-s, d-p$ $a-r, b-s, c-q, d-p$ $a-r, b-s, c-p, d-q$
asked Dec 17, 2017 in Operating System gatecse 2.3k views
0 votes
0 answers
20
Self doubt--Hello i am preparing for gate on my own reading textbooks. There is a very detailed garbage collection part in runtime environments part in Aho ullman.. How much to read from there.. Any past gate rankers and fellow gate aspirants kindly reply.
asked Dec 14, 2017 in Compiler Design Tridhara Chakrabarti 219 views
0 votes
1 answer
21
In an absolute loading scheme which loader function is accomplished by assembler ? (A) re-allocation (B) allocation (C) linking (D) loading
asked Sep 17, 2017 in Operating System rishu_darkshadow 1.7k views
2 votes
1 answer
22
Can anybody explain me access link and control link in activation record?I am confused what is different between them IF POSSIBLE GIVE EXAMPLE ALSO THANKS A LOT
asked Aug 3, 2017 in Compiler Design Himanshu Goyal 2.5k views
3 votes
1 answer
23
Consider the procedure declaration: Procedure P (k: integer) where the parameter passing mechanism is call-by-value-result. Is it correct if the call, P (A[i]), where A is an array and i an integer, is implemented as below. create a new local variable, say z; assign to ... the body of P using z for k; set A [i] to z; Explain your answer. If this is incorrect implementation, suggest a correct one.
asked Dec 19, 2016 in Compiler Design jothee 833 views
...