Sujet : Re: Loops (was Re: do { quit; } else { })
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 20. Apr 2025, 13:00:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250420150004.00001822@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Fri, 18 Apr 2025 16:57:24 +0200
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote:
Of course, if all you have is an assembler language then "all" you
have are jumps. (Note: again an accentuated formulation of the point,
but I'm confident you understand what I'm trying to say.)
Many architectures have counting loop as a dedicated construct that
differs from jump/branch. It is not uncommon even among general-purpose
CPU architectures. In the realm of DSPs I can not recollect an
architecture that does *not* have a dedicated loop istruction.
Also, many (most?) architectures have call (or jump-and-link) and return
as dedicated instruction distinct from jump/branch.