A compiled non-overlapping array-copy block #
This compiles the body of the reusable named function in
Complexity.Computability.Ram.Array.Traversal as a preloaded block.
Its code is fixed for every length, word width, and array content. The machine
theorems start at the main block with preloaded arrays and the three operands
already in registers; they do not claim an uncharged input loader or an
execution from the machine's zero-initialized state.
The final halt is executed and counted. The destination and unchanged source are observed in the actual halted machine memory, not only in a source state. Every destination-external word in the source heap is also preserved, while the separate ABI frame relation retains the old stack.
A block entry for the function's body, without a duplicate implementation or a loader. Ordinary calls use the function declaration itself.
Equations
- Ram.Examples.ArrayCopy.named = { registers := 3, declarations := [], main := Ram.Source.Array.copy }
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Instances For
Run the compiled block and its halt from an already matching, preloaded state at PC 1. The skipped prologue is not included in this block budget.
The mathematical source list is present at both source and destination in the actual final RAM memory. The frame observation covers every other heap word; it does not equate private target stack words with source memory.