Function RAM usage and struct size
Qt Creator and other tools
5
Posts
2
Posters
2.1k
Views
1
Watching
-
"sizeof()":http://en.wikipedia.org/wiki/Sizeof for the structure.
Not sure how you mean by the RAM usage for a function.
-
But sizeof only works in run time (I need to run the program to output the size of the structs).
I think I need some debug information (generated by debug), because I can see the size of structs while in debug window.Also, I found this useful flag:
QMAKE_CXXFLAGS += -fstack-usageit outputs the stack usage of each function.
-
I'm developing a framework for help the develop of embedded systems that use QT for pre-development/deploy.
http://code.ua.pt/projects/truefessim/wiki
Its useful to know some statistics of how much memory I need for structures.
In microcontrollers it isn't much memory: from 128bytes.. up to 4 .. 8K RAM...