king_griffin
New member
Hi everyone,
I am doing my project with Teensy 4.1 and I need to report the memory usage with respect the size of the matrix variable. I am using Eigen right now.
The simple script is like this (there are more actually)
I used that variable through the program. However when I increased the NSTATES, the total size of my build did not increase, that was not expected.
Before
After
This was in Debug mode without LTO, they were actually identical in Release mode. I don't understand the individual size and why individual size changes but not total size.
Could you help me to figure out why this happened?
Thank you very much!
I am doing my project with Teensy 4.1 and I need to report the memory usage with respect the size of the matrix variable. I am using Eigen right now.
The simple script is like this (there are more actually)
Code:
typedef Matrix<float, NSTATES, 1> my_VectorNx;
my_VectorNx[2] vector_a;
I used that variable through the program. However when I increased the NSTATES, the total size of my build did not increase, that was not expected.
Before
Code:
teensy_size: FLASH: code:329560, data:68156, headers:8808 free for files:7719940
teensy_size: RAM1: variables:74048, code:327048, padding:632 free for local variables:122560
teensy_size: RAM2: variables:12416 free for malloc/new:511872
Code:
teensy_size: FLASH: code:329240, data:68156, headers:9128 free for files:7719940
teensy_size: RAM1: variables:74048, code:326728, padding:952 free for local variables:122560
teensy_size: RAM2: variables:12416 free for malloc/new:511872
Could you help me to figure out why this happened?
Thank you very much!