• #pragma pack(n) scope
    Does #pragma pack(n) apply to all the structures in a source code or it has to be applied to each structure separately ? It's not clear from the manual. In one place it says: "You can use #pragma...
  • pragma pack structure in vxworks
    Hi, I am facing a problem in vxWorks. The problem is: I hava a pragma packed structure like below: struct C { float aaa; float bbb; } __attribute__((__packed__)) var3; struct B {...
  • STM32F4 Problem with #pragma pack(x)
    Hello, Depending on the control #pragma pack(x), the result of the compilation is different. In C++, Here's the problem, but it is more difficult without picture: With #pragma pack(2), the result...
  • #pragma SRC
    Hello, I have a problem with #pragma SRC directive. First, when I write it at the begining of my C file the compiler (CARM) writes: MAIN.C(1): warning C2: 'SRC': unknown #pragma/control, line...
  • Scope of #pragma
    If I declare: #pragma optimize(0) void func1(void) ... void func2(void) ... void func3(void) ... Does this apply only for func1 or for all subsequent functions (i.e. func2,func3,etc)?...