What is MSVC /Zp alternative on GCC and clang?

539 views Asked by At

In case, i want to define the structure alignment at a module level using the compiler flags such as /Zp for cl on windows. What are the alternatives on GCC and clang?

1

There are 1 answers

2
m.s. On

gcc -v --help gives:

-fpack-struct               Pack structure members together without holes
-fpack-struct=<number>      Set initial maximum structure member alignment

clang has the same switch (at least clang 3.x).