This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static variables, the stack, the heap, and speed
- From: "Bill McEnaney" <bill at rkirkpat dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 24 Jul 2006 11:26:27 -0600 (MDT)
- Subject: static variables, the stack, the heap, and speed
Hi, Folks,
I've read an article that says that since program get a static
variable's storage from the heap, the program can access static
variables faster than it can access automatic ones. Is that true?
Thanks.
Bill
________________________________________________________________
"Pro-choice?" Then click here.
http://cathinsight.com/morality/saying.htm
"Men must look for the peace of Christ in the Kingdom of Christ... When
once men recognize, both in private and in public life, that Christ is
King, society will at last receive the great blessings of real liberty,
well-ordered discipline, peace and harmony." Pope Pius XI