+ 1

Is there any way to check how much memory used by C code during runtime...?

I am using vscode and gcc Compiler, and working on certain c project.. I want make this project memory efficient, so I want to know how memory, stack or heap used by code during runtime, is there any way to do it.....?

7th Sep 2020, 9:18 AM
DeWill
DeWill - avatar
1 Antwort
+ 1
Even if you know how much memory you are utilising , what is benchmark to decide what ever you are utilising is best or not.... Additionally, there is always trade off between the speed and memory. IMHO, you should write effective code and learn how to do so.....Still let's wait for others to respond on memory utilisation....
11th Sep 2020, 4:10 PM
Ketan Lalcheta
Ketan Lalcheta - avatar