🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.asm
1 messages
1 total messages Started by sztuczny inteligent Sun, 18 May 2008 03:59
c2asm — pętla
#1816
Author: sztuczny inteligent
Date: Sun, 18 May 2008 03:59
16 lines
1262 bytes
Dlaczego kompilatory języka C zwykle tłumaczą
test zawarty w warunku pętli “while(){}”
jako rozkaz “cmpl %rejestr,$stała”
na architekturze x86, mimo że mogłyby korzystać z tego, że
ostatni rozkaz w bloku pętli ustawia flagę ZF bądź CF i OF, np.
“
0:	…
	subl	%ebx,%eax
#	cmpl	%eax,$0
	jnz	0b
”
-- 
 qo   |)      CPL<=dataDPL CPL==/>=codeDPL:conform'/nc';max=CPL! AV0ID bHp
    _x/ ,     CPL<=TSS,gateDPL CPL>=/==dest_DPL:/(jmp&nc') ,RPL!- #GP -o0o
    |    ng  __ -- __ -- __ -- __ -- __ -- __ -- __ -- __ -x86-, EV3RY o0o
,__ -- __ -- Current/Requested/DescriptorPrivilegeLevel C/R/DPL , d4y m:#=
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads