justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: is WDL_FIXALIGN still required with CLANG?
Asked by olilarkin (86.31.114.x) on October 19 2014, 10:26pm
Reply on October 20 2014, 3:10am (edited at October 20 2014, 3:13am):
    You could test with the following code:
    #include <stdio.h>
    struct foo {
      int x;
      double y;
      int z;
    };
    
    int main() { printf("fixalign needed: %d\n",sizeof(struct foo) == 16); return 0; }
    
    Edit: I just tested, it is needed for 32 bit clang, but not for 64 bit. I'm guessing clang tries to be ABI-compatible with gcc, so this would make sense. clang doesn't appear to support -malign-double (which gcc usually does).

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS