Compiler optimization
From: AMH (ingen_at_spam.tak)
Date: 12/15/04
- Next message: Tom de Neef: "Re: Compiler optimization"
- Previous message: Rob Kennedy: "Re: Read the background and text color of a cell in an StringGrid"
- Next in thread: Tom de Neef: "Re: Compiler optimization"
- Reply: Tom de Neef: "Re: Compiler optimization"
- Reply: Rob Kennedy: "Re: Compiler optimization"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Dec 2004 22:15:19 +0100
I'm interested in how the compiler optimizes. In the code below, is (1)
optimized to (2) when the code is compiled or does it calcuate Size div
10 - 1 each iteration? Furthermore - where can I read more about
compiler optimization?
1)
for Iterator := 0 to Size div 10 - 1 do
2)
Size := Size div 10;
for Iteratopr := 0 to Size - 1 do
- Next message: Tom de Neef: "Re: Compiler optimization"
- Previous message: Rob Kennedy: "Re: Read the background and text color of a cell in an StringGrid"
- Next in thread: Tom de Neef: "Re: Compiler optimization"
- Reply: Tom de Neef: "Re: Compiler optimization"
- Reply: Rob Kennedy: "Re: Compiler optimization"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|