🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #2347

ADD SUB kontra INC DEC

#2347
From: yesma
Date: Tue, 20 Jul 2010 15:15
18 lines
1303 bytes
http://www.agner.org/instruction_tables.pdf
9 List of instruction timings and μop breakdown for P4E

Tyle że niema tutaj podane dla ADD, SUB operands r,i

Instruction       ADD, SUB         INC, DEC
Operands          r,r              r
µops              1                2
Microcode         0                0
Latency           1                1
Throughput        0.25             0.5
Port              0/1              0/1
Unit              alu0/1           alu0/1

Czy nielepiej jest stosować zawsze ADD SUB zamiast INC DEC ?
-- 
Regards - Grzechu
Linux x86_64
Technical Details
Message-ID: <i24eks$ec7$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: yesma <yesma@false.pl>
Newsgroups: pl.comp.lang.asm
Subject: ADD SUB kontra INC DEC
Date: Tue, 20 Jul 2010 17:15:52 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 18
Message-ID: <i24eks$ec7$1@inews.gazeta.pl>
Reply-To: yesma@false.pl
NNTP-Posting-Host: user14-095.satfilm.net.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1279639004 14727 77.91.14.95 (20 Jul 2010 15:16:44 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 20 Jul 2010 15:16:44 +0000 (UTC)
X-User: yesma
User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit