Skip to content
STIMSMITH

Memory Allocation Size Variation

Technique

Memory allocation size variation is a source of edit-distance differences between ground-truth and predicted assembly code in CISC-to-RISC transpilation. Compilers and transpilers may emit different allocation sizes for the same logical data structure, provided the allocated memory remains sufficient for the program's needs.

First seen 9/21/2026
Last seen 9/21/2026
Evidence 1 chunks
Wiki v1

WIKI

Memory Allocation Size Variation

Definition

Memory allocation size variation is a phenomenon observed in assembly-level program representations (particularly in transpilation between instruction set architectures) in which two functionally equivalent code sequences allocate different amounts of memory for the same logical data structure or buffer. Despite the numerical difference, the allocation remains correct as long as the allocated region is sufficient for the program's needs.

READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

1 connections
ARM targets ISA → 72% 1e
Allocation size change example uses ARM immediate move into r0.

CITATIONS

4 sources
4 citations — click to collapse
[1] Memory allocation sizes can vary between ground-truth and predicted assembly as long as the allocation remains sufficient for the program's needs. Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees
[2] A documented instance of memory allocation size variation is a ground-truth `mov r0, #400` versus a predicted `mov r0, #800`, with an associated edit distance of 23. Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees
[3] Memory allocation size variation is presented as one category among several divergences (register selection, stack-location permutation, symbol renaming, instruction combining, stack-frame offset variation, instruction-sequence divergence, and constant loading style) catalogued between ground-truth and predicted assembly in CISC-to-RISC transpilation. Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees
[4] Because allocation-size variation preserves functional correctness when sufficient memory is provided, equivalence testing for transpilation must rely on behavioral execution rather than syntactic matching. Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees