Jump to content

Talk:Peephole optimization

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mattmilford (talk | contribs) at 19:24, 16 October 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

I know the article is lacking in quality and clarity, but it's better than nothing. Wouter Lievens 12:38, 4 November 2005 (UTC)[reply]

Actually this is excellent. --Jorend 16:35, 14 March 2007 (UTC)[reply]


Your optimisation example is incorrect, as the value of a is not written back from the stack in the second example. If a where to be referenced later in the program, it would not be the correct value. However, if a was never accessed again, that would be a valid optimisation, but you would need to state that the compiler knew this was the case. Mattmilford 19:24, 16 October 2007 (UTC)[reply]