Re: Branch/load delay in x86 architecture?

From: Betov (spamtrap_at_crayne.org)
Date: 10/25/04


Date: Mon, 25 Oct 2004 17:26:27 +0000 (UTC)


"Erik Larsson" <spamtrap@crayne.org> écrivait
news:WGLed.6937$d5.58788@newsb.telia.net:

> I've been doing a little assembly programming earlier in life, but
> mostly with RISC-architectures. Now I'm learning x86... and I wonder
> about some things I learned back then:
> Does one have to consider load delay/branch delay in the
> Intel-architecture? Because from the programming examples I've seen,
> it doesn't really look that way.
>>>From what I've learned load/branch delay was a result of the processor
>>using
> pipelining, and the pipeline on intel I've heard from somewhere, has
> up to 15 steps or so?
> Are there any other things one has to consider when writing Intel
> assembly code? Similar problems?

You will get two types of answers to these questions:

1) The answers from programmers who never wrote anything
significative, in Assembly, and that will push you to
eventually consider these points.

2) The answers from programmers who write full Assembly
Applications, currently. These ones will tell you that
Assembly is very simple to write, and that all of the
Code Level Optimisations Tips&Tricks should be fermely
rejected, unless very exceptional cases, that you do
not have to consider, for a start.

My answer is: No, you do not have to consider these
things, and no, there is no such similar problem to be
considered. I have written the fastest of the actual
PE Assemblers - 2.7 Megas of Asm Sources - and i never
took any care of doing any Code Level Optimisation. The
only things, that matter, are Readibility, and Strategy
Optimisation).

Betov.

< http://rosasm.org/ >



Relevant Pages

  • Re: Multi-Statements Lines
    ... One of the multiple problems that have made Assembly a dead ... Actually, as most modern assemblers still enforce this style, it's ... multiple statements on one line is one way to do it. ... programmers cram multiple statements per line (as those programmers ...
    (alt.lang.asm)
  • Re: my first Forth program
    ... facilities at all I think modern programmers have it easy. ... Forth assemblers are part of the Forth ... to cassette tape, load the object code from tape and run it. ... A Forth assembler routine does not need to be saved to ...
    (comp.lang.forth)
  • Why people perceive ASM to be hard to read
    ... > Its much the same comment as I made to Robert, horses for courses, ... because most people perceive that assembly language programs are *hard* ... assemblers that attempt to simulate these features. ... existed because *most* assembly language programmers weren't using ...
    (alt.lang.asm)
  • Re: Faster HexToBuffer Routines
    ... So why not post an example of a hex to buffer routine that is ... comparisons in between the various Assemblers Speeds, ... This has nothing to do with speeds of assemblers or anything like that. ... we've seen examples in this thread how "real" assembly programmers ...
    (alt.lang.asm)
  • Re: Bye Bye Grey Goo
    ... you still need self-replicating assemblers to produce all ... If the assemblers and disassemblers are designed to use different power ... Programmers issue instructions for building assemblers, disassemblers, ... while the terminators are activated. ...
    (sci.nanotech)