This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: An issue for the SC: horrible documentation quality of GCC


>>>>> Zdenek Dvorak writes:

Zdenek> The sane way
Zdenek> how to write a compiler is to run these generic passes first, then
Zdenek> run machine-dependent passes that may eventually fix the mistakes
Zdenek> the previous optimizations have done (due to their generic ideas being
Zdenek> not right in some corner cases). This way we would get approximately
Zdenek> the same results, but in much more transparent way.

	This assumes that the mistakes can be corrected with a later
machine-dependent pass, which is not always correct.  Plus it takes more
compile time to correct the mistakes instead of choosing the correct
heuristics in the first place.  The generic pass already needs to apply
*some* heuristic.

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]