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?


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?