Re: while ();
- From: "\\\\\\o///annabee" <fack@xxxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 11:31:28 GMT
På 29 Jan 2006 17:30:49 -0800, skrev <Chewy509@xxxxxxxxxxxxxxxx>:
\\\o///annabee wrote:
PS. I use FASM for my assembly work...
PPS. Back on topic, I found gcc 3.4.3 (at least when targeting x86_64) generates the test at the start, with a jmp at the end, opposite to what both Robert and Randy has advised... However rereading the Intel manuals on optimisation, it's clear that both Robert's and Randy's suggestion will provide the superior code in most general case instances.
Right. Well. If you remove the RosAsm talk, the answer still is a valid one, and that is
that code optimization is largly a waste of time.
This is just not some words mind you, that I parrotted from Rene. I also have done code optimizations. What I am getting at here is that the moment one turns a HLL source into asm, to speed it up, it is _NEVER_ the translation into asm that does the trick, but the thinking that happens during the translation. The act of working with the problem, with the higher resolution of asm, plus the additional effort, will make one aware of better strategy optimizations.
-- Darran (aka Chewy509) brought to you by Google Groups!
.
- References:
- Re: while ();
- From: \\\\\\o///annabee
- Re: while ();
- From: Chewy509
- Re: while ();
- Prev by Date: Re: a challenge
- Next by Date: Re: It has been done before
- Previous by thread: Re: while ();
- Next by thread: Re: while ();
- Index(es):