[µTVM] Static Runtime Code Generator

Hi @manupa-arm

for the simulation, a large enough stack (4K) was reserved. Through memory tracing, the maximum usage was recorded. This number is reported and included in the other RAM numbers (data sections and unused heap).

So for example for the sine_model the detailed report looks like this:

=== Results ===
ROM usage:        5.9 kB (0x171c)
  read-only data: 1.5 kB (0x608)
  code:           4.2 kB (0x1084)
  other required: 144 Bytes (0x90)
RAM usage:        2.3 kB (0x924)
  data:           1.1 kB (0x444)
  zero-init data: 132 Bytes (0x84)
  stack:          1.1 kB (0x45c)
  heap:           0 Bytes (0x0)

The full logic can be found here: etiss/get_metrics.py at master · tum-ei-eda/etiss · GitHub

1 Like