in reply to Re^3: quickness is not so obvious
in thread quickness is not so obvious
Coding guidelines. (Which have turned in to habit.)
Though it has been several years since I last saw a compiler allocate a temporary - or even an extra register - to a post-increment or -decrement in a void context.
And even in a non-void context, on many micros, the compiler will use an in-place inc/dec instruction so no extra register or temporary required.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: quickness is not so obvious
by GrandFather (Saint) on Jan 24, 2015 at 05:44 UTC | |
by Athanasius (Archbishop) on Jan 24, 2015 at 07:05 UTC | |
by LanX (Saint) on Jan 24, 2015 at 07:48 UTC | |
by RonW (Parson) on Jan 24, 2015 at 19:47 UTC | |
by LanX (Saint) on Jan 24, 2015 at 19:55 UTC | |
by GrandFather (Saint) on Jan 24, 2015 at 22:05 UTC | |
by RonW (Parson) on Jan 26, 2015 at 06:39 UTC | |
by RonW (Parson) on Jan 26, 2015 at 18:04 UTC | |
by LanX (Saint) on Jan 26, 2015 at 19:37 UTC | |
|