# \[µTVM\] Static Runtime Code Generator

**URL:** <https://discuss.tvm.apache.org/t/tvm-static-runtime-code-generator/8986>\
**Category:** Application\
**Created:** [January 28, 2021, 4:36pm UTC](https://discuss.tvm.apache.org/t/tvm-static-runtime-code-generator/8986 "2021-01-28T16:36:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![r.stahl](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@r.stahl](https://discuss.tvm.apache.org/u/r.stahl)\
**Post date:** [January 29, 2021, 10:20am UTC](https://discuss.tvm.apache.org/t/tvm-static-runtime-code-generator/8986/5 "2021-01-29T10:20:57Z")

</div>

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](https://github.com/tum-ei-eda/etiss/blob/master/examples/bare_etiss_processor/get_metrics.py)

---

_[View the full topic](https://discuss.tvm.apache.org/t/tvm-static-runtime-code-generator/8986)._
