News for hackers. Stuff that matters.
Re:Building the Linux kernel with clang by benmmurphy on Thursday September 21, 2017 @09:44AM (#15303278)
thanks. that makes sense.

    #include <stdio.h>
    void foo (int n) {
      struct S { int x[n]; int y; };

      printf("offset: %ld\n", __builtin_offsetof(struct S, y));
    }

    int main() {
      foo(2);
      foo(16);
    }

    offset: 8
    offset: 64

There are no comments on this comment yet.