answersLogoWhite

0


Best Answer

There are many. I have encountered compilers with as few as 2 passes to as many as 63 passes (this number of passes were necessitated by the very tiny magnetic core memory of the machine). I even encountered a compiler that the programmer that wrote it claimed was a 1 pass compiler, but on detailed examination all he had done was "piped" the output of pass 1 to the input of pass 2 (instead of writing it to an intermediate file between passes), so it was actually a 2 pass compiler.

I have also encountered a language (the US Navy's CMS-2) that has both syntactic and semantic ambiguities that made it impossible to write a compiler (no matter how many passes) that could reliably compile all code given to it, to do what the programmer intended.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which are the factors that decide number of passes for a compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you reduce no of passes in compiler?

In order to reduce the number of passes in a compiler, all symbols have to be fully declared and defined before they are referenced. That's assuming, of course, that you would want to write a single pass compiler to start with. Most current compilers are very good at what they do, and reinventing the wheel, other than for a computer science class, is meaningless.


What is passed on?

A single pass compiler also known as a one-pass compiler is a compiler that only passes through the code once and doesn't go back. They're faster than a multi-pass compiler but they are very limited in what they can do.


Why single pass compiler are faster than multi pass compiler?

A one-pass compiler is a compiler that passes through the source code of each compilation unit only once. A multi-pass compiler is a type of compiler that processes the source code or abstract syntax tree of a program several times.A one-pass compilers is faster than multi-pass compilersA one-pass compiler has limited scope of passes but multi-pass compiler has wide scope of passes.Multi-pass compilers are sometimes called wide compilers where as one-pass compiler are sometimes called narrow compiler.Many programming languages cannot be represented with a single pass compilers, for example Pascal can be implemented with a single pass compiler where as languages like Java require a multi-pass compiler.


Define majority rule?

majority vote passes laws and majority voters decide elections


Does the executive branch decide if laws are constitutional?

The Executive Branch Passes The Laws CR


Passes in netball?

there is no limit in the number of passes that are to be made before a goal


What is the independent and dependent variable of How does the number of passes affect the number of touchdowns scored?

Independent variable: number of completed passes Dependent variable: number of touchdowns scored


What action occurs at every step of the legislative process and is essential to a democratic system of government?

There is a vote to decide if it passes or not


What is pass in compiler design?

There are two types of compilers one-pass and multi-pass. Pass means that some of inner operations are repeated several times. If we have one-pass compiler and this source code: i++; i++; i++; Inside compiler it would generate: i = i + 1; i = i + 1; i = i + 1; If compiler would be two-pass: i = i + 3; The more passes compiler has, the better optimized code it can generate, but it is slower because it must repeat some steps again.


What is a significant number?

In statistics a significant number is a number that passes certain tests that makes the statistic relevant.


When the moon passes in front of the moon?

Horacell number gta


What is the number of the most volleyball passes?

3. 4 if there is a block