Recent questions tagged compilation-phases

11 11 votes
4 4 answers
2.2k
2.2k views
Consider the following C statements:char *str1 = "Hello; /* Statement S1 */ char *str2 = "Hello;"; /* Statement S2 */ int *str3 = "Hello"; /* Statement S3 */Which of the ...
0 0 votes
0 0 answers
282
282 views
Arrange the following phases of a compiler as per their order of execution (start to end)Target code generationSyntax AnalysisCode optimizationSemantic AnalysisLexical An...
24 24 votes
6 6 answers
12.2k
12.2k views
​​​Consider the following two sets:$$\begin{array}{|ll|ll|}\hline & \textbf{Set X} & & \textbf{Set Y} \\\hline \text{ P.} & \text{Lexical Analyzer } & \text{1.}& \text...
55 55 votes
9 9 answers
28.4k
28.4k views
Consider the following statements regarding the front-end and back-end of a compiler.S1: The front-end includes phases that are independent of the target hardware.S2: The...
1 1 vote
1 answers 1 answer
959
959 views
According to the solution, there is no error in the program. And I ran the program there is no error. But how the rank is declared as int and initialized by 10.3 which is...
48 48 votes
13 answers 13 answers
34.1k
34.1k views
Consider the following $\text{ANSI C}$ program:int main () { Integer x; return 0; }Which one of the following phases in a seven-phase $C$ compiler will throw an error?Lex...
1 1 vote
2 2 answers
835
835 views
Which one of the following statements is $\text{FALSE}$?Context-free grammar can be used to specify both lexical and syntax rules.Type checking is done before parsingHigh...
1 1 vote
1 1 answer
1.4k
1.4k views
Which of the statements related to Compilers is wrong ?Lexical analysis is breaking the input into tokensSyntax analysis is for parsing the phraseSyntax analysis is for a...
54 54 votes
5 answers 5 answers
28.9k
28.9k views
Consider the following statements.Symbol table is accessed only during lexical analysis and syntax analysis.Compilers for programming languages that support recursion nec...
6 6 votes
3 3 answers
3.5k
3.5k views
Which one indicates a technique of building cross compilers?Beta crossCanadian crossMexican crossX-cross
0 0 votes
0 0 answers
674
674 views
I am having difficulty in finding the type of errors like if given a statement, if I have to tell which type of error it is ( syntax or semantic). Can anyone help me with...
0 0 votes
1 1 answer
1.9k
1.9k views
Any transcription error can be repaired by(a) insertion alone (b) deletion alone(c) insertion and deletion alone (d) replacement alone
0 0 votes
1 1 answer
447
447 views
What is the best resources to study Handles in compiler Design ?I can not understand this.
0 0 votes
1 answers 1 answer
2.7k
2.7k views
Which of the following is true?A) Symbol table is constructed during the analysis part of compiler i.e., (front endB) Type checking is done during syntax analysis phase...
0 0 votes
0 0 answers
681
681 views
Why we need turning machine in semantic analysis?Why we need PDA in syntax analysis?
51 51 votes
4 answers 4 answers
19.8k
19.8k views
Which one of the following statements is FALSE?Context-free grammar can be used to specify both lexical and syntax rulesType checking is done before parsingHigh-level lan...
1 1 vote
2 2 answers
5.7k
5.7k views
2 2 votes
1 1 answer
1.5k
1.5k views
Why do we use Three Address Code generally in intermediate Code Generation phase of compiler ?
2 2 votes
1 answers 1 answer
2.5k
2.5k views
A compiler that runs on one machine and produces code for a different machine is called :Cross compilation One pass compilation Two pass compilation N...
0 0 votes
1 1 answer
1.8k
1.8k views
a) (i) and (ii) onlyb) (ii) and (iii) onlyc) (i) and (iv) onlyd) All are correctConsider the following statements:(i). The symbol table contains information about the lex...
51 51 votes
5 answers 5 answers
16.6k
16.6k views
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:$$\begin{array}{|l|l|}\hline \text{P. Syntax t...
3 3 votes
1 answers 1 answer
629
629 views
In compilers, the type checking is done in:Lexical AnalysisSemantic AnalysisCode Generation PhaseParsing Phase
42 42 votes
4 answers 4 answers
21.2k
21.2k views
Match the pairs in the following questions:$$\begin{array}{|ll|ll|} \hline (a) & \text{Lexical analysis} & (p) & \text{DAG's} \\\hline (b) & \text{Code optimization} & (...
27 27 votes
5 answers 5 answers
9.7k
9.7k views
In a compiler the module that checks every character of the source text is called:The code generator.The code optimiser.The lexical analyser.The syntax analyser.
2 2 votes
5 5 answers
7.0k
7.0k views
In compiler optimization, operator strength reduction uses mathematical identities to replace slow math operations with faster operations. Which of the following code rep...
2 2 votes
1 1 answer
3.7k
3.7k views
Grammar of the programming is checked at ________ phase of compiler.Semantic analysisCode generationSyntax analysisCode optimization