* RE: Storing specified variables in the same memory page!
@ 2004-10-11 16:17 lrtaylor
2004-10-11 18:27 ` Virender Kashyap
0 siblings, 1 reply; 7+ messages in thread
From: lrtaylor @ 2004-10-11 16:17 UTC (permalink / raw)
To: vinaymr_02, sriharsha.v; +Cc: gcc-help
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@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Vinay
Sent: Monday, October 11, 2004 10:03 AM
To: Sriharsha Vedurmudi
Cc: gcc-help@gcc.gnu.org
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@redpinesignals.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Storing specified variables in the same memory page!
2004-10-11 16:17 Storing specified variables in the same memory page! lrtaylor
@ 2004-10-11 18:27 ` Virender Kashyap
2004-10-11 18:31 ` Eljay Love-Jensen
0 siblings, 1 reply; 7+ messages in thread
From: Virender Kashyap @ 2004-10-11 18:27 UTC (permalink / raw)
To: lrtaylor; +Cc: vinaymr_02, sriharsha.v, GCC HELP
global variables are store in data area rather than on stack .
On Mon, 11 Oct 2004 lrtaylor@micron.com 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@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
> Behalf Of Vinay
> Sent: Monday, October 11, 2004 10:03 AM
> To: Sriharsha Vedurmudi
> Cc: gcc-help@gcc.gnu.org
> 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@redpinesignals.com> 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@rediffmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Storing specified variables in the same memory page!
2004-10-11 18:27 ` Virender Kashyap
@ 2004-10-11 18:31 ` Eljay Love-Jensen
0 siblings, 0 replies; 7+ messages in thread
From: Eljay Love-Jensen @ 2004-10-11 18:31 UTC (permalink / raw)
To: Virender Kashyap, lrtaylor; +Cc: vinaymr_02, sriharsha.v, GCC HELP
Hi Virender,
Put all those global variables in a struct, to give them a contained locality.
--Eljay
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Storing specified variables in the same memory page!
2004-10-11 16:08 ` Vinay
@ 2004-10-13 8:51 ` energon
0 siblings, 0 replies; 7+ messages in thread
From: energon @ 2004-10-13 8:51 UTC (permalink / raw)
To: gcc-help; +Cc: Vinay, Sriharsha Vedurmudi
Well, you can define a struct with the necessary variable types and
allocate some shared memory and map the struct into the shared memory.
Typically, shared memory is allocated in size of page size chunks.
So, if your data set size does not span the memory page size, you'll
have your data in one page.
Do you need to avoid your data from being paged out of the RAM?
=====
-energon0
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Storing specified variables in the same memory page!
2004-10-11 15:57 ` Sriharsha Vedurmudi
@ 2004-10-11 16:08 ` Vinay
2004-10-13 8:51 ` energon
0 siblings, 1 reply; 7+ messages in thread
From: Vinay @ 2004-10-11 16:08 UTC (permalink / raw)
To: Sriharsha Vedurmudi; +Cc: gcc-help
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@redpinesignals.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Storing specified variables in the same memory page!
2004-10-11 15:53 Vinay
@ 2004-10-11 15:57 ` Sriharsha Vedurmudi
2004-10-11 16:08 ` Vinay
0 siblings, 1 reply; 7+ messages in thread
From: Sriharsha Vedurmudi @ 2004-10-11 15:57 UTC (permalink / raw)
To: Vinay; +Cc: gcc
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)
*****************************
^ permalink raw reply [flat|nested] 7+ messages in thread
* Storing specified variables in the same memory page!
@ 2004-10-11 15:53 Vinay
2004-10-11 15:57 ` Sriharsha Vedurmudi
0 siblings, 1 reply; 7+ messages in thread
From: Vinay @ 2004-10-11 15:53 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-10-13 8:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 16:17 Storing specified variables in the same memory page! lrtaylor
2004-10-11 18:27 ` Virender Kashyap
2004-10-11 18:31 ` Eljay Love-Jensen
-- strict thread matches above, loose matches on Subject: below --
2004-10-11 15:53 Vinay
2004-10-11 15:57 ` Sriharsha Vedurmudi
2004-10-11 16:08 ` Vinay
2004-10-13 8:51 ` energon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).