omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / ng / bench / kernels / bcopy.om
| 1 | note bench twin: 8000 reversed byte copies of a 64 KiB pattern, each xored with the round number |
| 2 | global src uchar 65536 |
| 3 | global dst uchar 65536 |
| 4 | fn main to int |
| 5 | for i ulong 65536 |
| 6 | put src i uchar and mul i 7 255 |
| 7 | end |
| 8 | for r ulong 8000 |
| 9 | k = uchar and r 255 |
| 10 | for i ulong 65536 |
| 11 | put dst sub 65535 i xor get src i k |
| 12 | end |
| 13 | end |
| 14 | w = write 1 dst 0 65536 |
| 15 | ret 0 |
| 16 | end |