Unmangle the two flat examples
Full_add_flat.r8asm and full_add_flat_spaced.r8asm had their comments turned into question marks: they were written through a PowerShell Set-Content with ASCII encoding, which cannot represent Chinese and substitutes '?'. Rewritten as UTF-8, with the comments saying what the files are for. Both still assemble from cache (95 characters) and still produce the same tape, which is the point of the layout free metric. A scan of the whole tree for '???' now comes back empty.
This commit is contained in:
1 parent
e5d87791e0
commit
b1a8ca5617
2 files changed
+5
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
%include "asm/lib.r8asm"
|
||||
|
||||
; ????:metric flat ?? .tp ?????,??? cell ????,
|
||||
; ??????????????(?????????????????)?
|
||||
; 步长无关:metric flat 不计 .tp 的行走代价,结果与 cell 布局无关,
|
||||
; 所以一份缓存能用在任何调用点(代价是纸带比按实际布局最优的长一点)。
|
||||
%synth fulladd_flat
|
||||
params 6
|
||||
map 0 1 1 2 1 2 2 3
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
%include "asm/lib.r8asm"
|
||||
|
||||
; ????:metric flat ?? .tp ?????,??? cell ????,
|
||||
; ??????????????(?????????????????)?
|
||||
; 同一个 metric flat 块,只是额外写了 layout 0 2 4 6 8 10。
|
||||
; flat 不看布局,所以它命中 full_add_flat.r8asm 的同一份缓存,发射出完全相同的纸带
|
||||
; —— 这正是"步长无关、可跨调用点复用"的证据。
|
||||
%synth fulladd_flat
|
||||
params 6
|
||||
map 0 1 1 2 1 2 2 3
|
||||
@@ -19,4 +20,3 @@
|
||||
fulladd_flat A B Ci S Co T
|
||||
output S
|
||||
output Co
|
||||
|
||||
Reference in new issue
Block a user