Article 5C3VE Linux executable global and other memory - how to reduce global memory space options

Linux executable global and other memory - how to reduce global memory space options

by
uunniixx
from LinuxQuestions.org on (#5C3VE)
I am trying to reduce the global variables mainly two fold:

To decrease the time to load in memory and increase program start execution time
Optimize memory for global variables

What options I should use to see global variables using nm utility - anything else that can aid my query

C++ compiler version used is MinGW C++ 8.1 / GCC-8.3.1.

Please let me know steps to find out - -

How much space is global memory occupying or comes to in term of size?
Approach to replace global variables?
How much time does it takes to load these global variables in memory before the application starts executing?latest?d=yIl2AUoC8zA latest?i=4OJgU36Gujs:n-V9xi1PiOU:F7zBnMy latest?i=4OJgU36Gujs:n-V9xi1PiOU:V_sGLiP latest?d=qj6IDK7rITs latest?i=4OJgU36Gujs:n-V9xi1PiOU:gIN9vFw4OJgU36Gujs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments