Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

VC++ compiler instructions for contagious memory allocation for global variables.

$
0
0

Hi All,

Does Microsoft VC++ compiler provide option for allocating memory for global variables as per user wish or in continous manner without padding.

I need to global ram structures to be in continuous memory location with padding in middle.

struct details a;

struct details b;

both structures above need to place in ram one after another.

I tried #pragma section option provided in VC++ but didn't work.

Help out!!


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>