Eroxl's Notes
Dynamic vs Static Arrays

While static and dynamic arrays in C are syntactically similar when they are translated to machine code, the differences become clear. dynamic arrays require an extra load operation when accessing elements.

Given the C code b[a] = a;, where b and a at and respectively are already defined statically, we can be express the code in RTL as follows

Static Array

Dynamic Array