Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

COMMON block page alignment

ereisch
New Contributor II
483 Views

I'm trying to create a shared memory region (using shmat, et. al.) to use for IPC (my common blocks are huge.......close to 100M each). Problem I'm having is the start of the COMMON block needs to be page aligned in order for shmat() to work properly. Changing the value of the -align flag only appears to pad the elements of block, not altering the start of the block itself. How do I get the compiler to have the block start on a page boundary?

TIA

0 Kudos
1 Reply
Steven_L_Intel1
Employee
483 Views
See the !DEC$ PSECT ALIGN attribute in the Language Reference Manual.
0 Kudos
Reply