From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1673 invoked by alias); 13 Oct 2004 08:51:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1665 invoked from network); 13 Oct 2004 08:51:20 -0000 Received: from unknown (HELO web40508.mail.yahoo.com) (66.218.78.125) by sourceware.org with SMTP; 13 Oct 2004 08:51:20 -0000 Message-ID: <20041013085119.5721.qmail@web40508.mail.yahoo.com> Received: from [203.124.142.66] by web40508.mail.yahoo.com via HTTP; Wed, 13 Oct 2004 01:51:19 PDT Date: Wed, 13 Oct 2004 08:51:00 -0000 From: energon Subject: Re: Storing specified variables in the same memory page! To: gcc-help@gcc.gnu.org Cc: Vinay , Sriharsha Vedurmudi In-Reply-To: <20041011160251.31022.qmail@web8501.mail.in.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-10/txt/msg00093.txt.bz2 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