Re: while ();




\\\o///annabee wrote:
> >
> > Hi Robert and Randy,
> >
> > Thanks for the input... I've updated the compiler to generate the test
> > at the bottom, rather than at the top.
>
> Imo, what you should do is to do nothing.
> (Scrap your compiler as well).

Hi Bumble-bee,

Thanks for the encouragement to self improve (yes I'm being sarcastic),
and thanks for the UNWANTED ROSASM SPAM!

Seriously, I had a genuine question about optimisation and all I got
from you was an advertisement for a product which DOES NOT SUIT MY
NEEDS. If you took a second and used GOOGLE or had a memory span of
greater than 6months, you've found/known that I'm developing a machine
dependent langauge and compiler targetted at Operating System
Development. Besides the FACT that I rarely use Windows at all, except
just for the occasion game to relax or to test the compiler, Rosasm is
not a product that I could use or even choose to use given the other
assemblers which are available to me.

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.

--
Darran (aka Chewy509) brought to you by Google Groups!

.



Relevant Pages

  • Re: Early fruits of my labour
    ... Hi Randy, ... As for the caller, setting up and tearing down the stack frame, well it ... I would modify the compiler so that it prints out a token list ... > information slide by during debugging isn't a bad idea, ...
    (alt.lang.asm)
  • Re: B0
    ... > randy wrote: ... > that this is a full-blown compiler and not a preprocessor (btw, ... Someone has taken their love for assembler, ... considering this an assembler (in the same token as most consider terse ...
    (alt.lang.asm)
  • Re: Data Flow Analysis?
    ... > I want to participate in static analysis research and I would like to know ... these are CiteSeer's most popular hits in "Compiler ... "Dependence Analysis ", ... Randy Allen and Ken ...
    (comp.compilers)
  • Re: Do People Really Learn Assembly with HLA?
    ... > Randy, I keep getting this error message after installing HLA, and ... You have installed a recent version of HLA, ... error if the compiler is rejecting this. ... Randy Hyde ...
    (alt.lang.asm)
  • Re: What micros do you actually hate to work with?
    ... no HW multiplier and there can only be 30-40 processor cycles alotted to ... The x10 factor does not come out of what the compiler does alone, ... Some assemblers are not as good as C - say, ... The reason can often be summed up in a single symbol: ...
    (comp.arch.embedded)