answersLogoWhite

0

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.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
More answers

Factors which influence the number of passes to be used in a particular compiler include:

  • Available memory
  • Speed and size of compiler
  • Speed and size of object program
  • Debugging features required
  • Error detection and recovery techniques desired
  • Effort spent writing the compiler
User Avatar

Wiki User

11y ago
User Avatar

• The complexity of optimization: Compilers that conduct more complex optimization may need more passes to analyze and optimize the code.

• The complexity of the language: will determine how many passes a compiler needs to make in order to convert the source code into machine code.

• Memory restrictions: Some compilers might have to restrict the amount of memory utilized during compilation, which might necessitate breaking up the passes into more manageable, smaller portions.

User Avatar

uone4230

Lvl 2
2y ago
User Avatar

Add your answer:

Earn +20 pts
Q: How can you reduce no of passes in compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence compiler.


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What is cross compiler?

A cross-platform compiler can compile applications for multiple platforms, such as Windows, Linux, and Mac. An open-source cross-platform compiler is GCC (the GNU C Compiler). A cross-platform compiler uses a language that can be compiled on to multiple targets, such as C, C++, or haxe. It is required to compile the same source code multiple times, one for each target platform; a program such as make can be used to reduce the number of commands the user actually executes to just a single command.


What are the responsibilities of a compiler?

What are the responsibities of a compiler