I have a pointer to a dynamically allocated array that is in a shared data section. Defined as(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?Code:DWORD* ThreadIDs __attribute__((section ("shared"), shared)) = NULL;


Reply With Quote