CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Apr 2008
    Posts
    26

    How can I create allocate memory in a named data section

    I have a pointer to a dynamically allocated array that is in a shared data section. Defined as
    Code:
    DWORD* ThreadIDs __attribute__((section ("shared"), shared)) = NULL;
    (Using GCC Compiler) I want to know how I can allocate memory specifically in that named section (.shared). I don't know very much about the different sections so I'm not entirely sure if this is even possible, thoughts?
    Last edited by Brownhead; August 9th, 2008 at 04:43 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured