Skip to content

Commit 994dd7b

Browse files
committed
bak
1 parent b761980 commit 994dd7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

programming-language.bigb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,22 @@ loop:
260260
inc %[i0];
261261
inc %[i1];
262262
inc %[i2];
263+
...
264+
inc %[i_n];
263265
cmp %[max], %[i0];
264266
jb loop;
265267
``
266268
with different numbers of inc instructions.
267269

268-
\Image[https://raw.githubusercontent.com/cirosantilli/media/refs/heads/master/c/inc_loop_asm_n.png]
270+
\Image[https://raw.githubusercontent.com/cirosantilli/media/refs/heads/master/c/inc_loop_asm_n_manual.png]
269271
{title=<c/inc_loop_asm_n.sh>{file} results for a few CPUs}
270272
{description=
271-
Data from multiple CPUs manually collated and plotted manually with \a[c/inc_loop_asm_n_manual.sh].
272-
273273
Quite clearly:
274274
* <AMD 7840U> can run INC on 4 functional units
275275
* <Intel i7-7820HQ> can run INC on 2 functional units
276276
and both have low instruction count effects that destroy performance, AMD at 3 and Intel at 3 and 5. TODO it would be cool to understand those better.
277+
278+
Data from multiple CPUs manually collated and plotted manually with \a[c/inc_loop_asm_n_manual.sh].
277279
}
278280
{height=480}
279281

0 commit comments

Comments
 (0)