answersLogoWhite

0

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

13y ago

What else can I help you with?

Related Questions

What is the equation for calculating the phase difference between two waves?

The equation for calculating the phase difference between two waves is: Phase Difference (2 / ) (x) Where: Phase Difference is the difference in phase between the two waves is the wavelength of the waves x is the difference in position between corresponding points on the waves


What is the formula for calculating the phase difference between two waves?

The formula for calculating the phase difference between two waves is: Phase Difference (2 / ) (x) Where: Phase Difference is the difference in phase between the two waves is the wavelength of the waves x is the difference in position between corresponding points on the waves


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

The phase difference between two waves is directly proportional to the path difference between them. The phase difference is a measure of how much the wave has shifted along its oscillation cycle, while the path difference is a measure of the spatial separation between two points where the waves are evaluated.


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.


Why there is a difference in phase between sign waves in a low pass filter?

In a low pass filter, higher frequency components are attenuated more than lower frequency components. This results in a phase shift for the different frequency components, causing a difference in the phase between sine waves of different frequencies. This phase shift occurs because the filter delays higher frequency signals more than lower frequency signals.


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"


What is the phase difference between points e and f?

The phase difference between points e and f is the difference in the position of their respective waveforms at a given point in time.


What is Phase difference between two points on wave front?

Phase difference between two points on a wavefront refers to the difference in phase angles at those points. It signifies the amount by which the phase of one point on the wavefront lags or leads the phase of another point. This phase difference can determine aspects like interference patterns and wave behaviors.


Single phase and three phase circuit?

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


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.