On 10 Nov 2013, at 22:42, Martin wrote: > Why is the > movl %eax,-12(%ebp) > generated at the start of i:=i+1 > > Why does a statement save an outdated value to memory?
Because the load back from memory that came right after it got removed by a peephole optimisation. Peephole optimisations are by definition local and have no clue about what happens next, and hence the store remains. Jonas_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel