Patent ID: 11860795
Assignee: ARM LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 12:
13. A method comprising:
(a) dynamically modifying, in an iterative process comprising two or more iterations of running an executable program code, a maximum size of Random Access Memory (RAM) that a Memory Protection Unit (MPU) authorizes the executable program code to access;
(b) in each of said iterations of running the executable program code, running said executable program code while said MPU enforces a different maximum size of RAM that the executable program code is authorized to access, and monitoring whether said executable program code attempted to access a RAM memory address that is beyond said maximum size of RAM in said iteration; and
(c) based on said iterations of running the executable program code, determining a minimum size of RAM that is required for said executable program code to run without causing a memory access fault.