answersLogoWhite

0


Best Answer

Improve

When we talk about the phases we talk about the steps compiler should do in order to finish it job. For example phases could be creating local variables symbol table, generating parsing tree, lexical checking, optimization, etc.

When we talk about passes we talk about times some operation was repeated. For example there are 2-passes Assembler compilers. It means that before giving the results it repeats some steps twice, most of time times optimization step. The more passes you put the better quality result you get. The same applies to music and video encoding.

For example:

Source code:

i++;

i++;

i++;

1st step (pass):

i = i + 1;

i = i + 1;

i = i + 1;

2nd step (pass):

i = i + 3;

Most of compiler before generating results converts source code some kind inner language that is easier to parse, check in later steps.

As you can see two-pass compiler would generate better quality code, than one-pass compiler, but the first one would be faster to compile.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Add your answer:

Earn +20 pts
Q: What is difference between phase and pass?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the relation between the path difference and phase difference?

Relation between phase difference and path difference is path difference/wavelength=phase difference/2*pi


Is there a difference between three phase and single phase electrical supplies?

Yes, there a difference between three phase and single phase electrical supply services.


How do you measure phase difference between 2 pendulums?

You can measure the phase difference between 2 pendulums by measuring the distance between the two. The amount it comes out to will be the difference.


What is the difference between cw and steady at lock-on phase?

What is the difference between cw and steady at lock-on phase? I don't know.


What is difference between a phase and a phase transition?

a phase is a region with homogeneous (uniform) properties and a conversion between states is called a "phase transition"


Single phase and three phase circuit?

Yes, there is a difference between single phase and three phase circuits.


What is the difference between nano anatase and nano rutile?

The difference in the crystal structure of the anatase phase and rutile phase


What is the difference between two phase and double sampling?

what is the difference betwee two stage and two phase sampling


What is the difference between energy investment phase and energy payoff phase?

hy


What is the difference between frequency modulation and phase modulation?

The difference between frequency modulation and phase modulation is that with frequency modulation the angular frequency of the signal is modified while with the phase modulation, the phase angle of the signal is modified.


What is difference between cooler and condenser?

Type your answer here... the basic difference is the phase of the material which is to be cooled i.e.in condencer it is in vapour phase & in cooler it is in liquid phase.


What is Physical interpretation of in phase and out of phase?

Two locations are said to be "in phase" when the waveform is "lined up" so there is no voltage difference between the two points.They are out of phase if there is a voltage difference between them.If you are looking at an oscillograph reading of both, if they are in phase the waveforms will be identical magnitude at the same time. If out of phase, one will be shifted relative to the other causing a voltage difference.