global variables are store in data area rather than on stack .
On Mon, 11 Oct 2004 lrtaylor@xxxxxxxxxx wrote:
Aren't local, non-static variables always stored on the stack? It
wouldn't make sense to me to put them anywhere else...
Thanks,
Lyle
-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Vinay
Sent: Monday, October 11, 2004 10:03 AM
To: Sriharsha Vedurmudi
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: Storing specified variables in the same memory page!
Hi Harsha,
But the variables I would like to specify can be local
also. I need a way by which I can specify any type of
variable and they must be stored in the same memory
page.
Thanks,
Vinay
--- Sriharsha Vedurmudi
<sriharsha.v@xxxxxxxxxxxxxxxxxx> wrote:
Will global/static variables not be stored stored
consistantly in one page?
-Harsha
Vinay wrote:
Hi,
I would like to know if there is any way by which I
can inform the compiler to store certain variables
in
the same memory page. This would really help my
project. If not possible, is there a way to change
the
source code of GCC to implement the same.
Thanks,
Vinay
_______________________________________________________________________
_
Yahoo! India Matrimony: Find your life partner
online
Go to: http://yahoo.shaadi.com/india-matrimony
--
*****************************
* Sriharsha Vedurmudi
* Software Engineer
*
* Redpine Signals Inc.
* Gate #395, Plot 87,88
* Sagar Society, Road #2,
* Banjara Hills,
* Hyderabad - 500 034
* www.redpinesignals.com
*
* +91-40-23559911 (Office)
* +91-9849133133 (Mobile)
*****************************
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
--
Regards.
Virender
----------------------------------------------
Virender Kashyap
Senior Undergraduate Student
Roll No 00d05011
ADD:
Room 182 ,Hostel 2
IIT Bombay ,Powaii
Mumbai -400076
Homepage: www.cse.iitb.ac.in/~virenk
Email : viren16@xxxxxxxxxxxxxx