Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RAM memory optimization at compilation

Tags:

c

ram

I am working on a project it is in C programing language, I'm trying to analyze the RAM memory (segment allocations ) at compilation time for library files on specific feature. That will help me out statically to optimize my data size at compilation level itself.

I am using Wind River(Diab 5.8) compiler. That can be run on Freescale microcontroller platforms. I am developing this application on Windows environment. Please help me to find this.

like image 493
Santoshkumar Hadapad Avatar asked May 07 '26 01:05

Santoshkumar Hadapad


1 Answers

If you pass -m to the linker that should be sufficient to get it to print out a list of segment allocations. That way you'll be able to see how much of your code segment is taken up by a particular (statically linked) library.

like image 119
jleahy Avatar answered May 08 '26 17:05

jleahy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!