• Feature of using the BYTEALIGN directive
    I need to use pointer on structure that may start on byte boundaries. Therefore I write: #pragma pack(1) #pragma BYTEALIGN typedef struct TLG { unsigned int a0; unsigned char a1; unsigned...
  • #pragma bytealign
    I have defined a #pragma bytealign in my code after a #pragma pack(1), in order to use structure pointers then I have defined a #pragma pack() to cancel the effect of the first pack(1) after the definition...
  • MAC compiler directive
    HI, I am using a ST10F269. I need to add the MAC compiler directive to generate coMUL etc instructions. I have to do this by adding the control in the C166 options page. Do I need to add the EXTMAC...
  • An_138: what directive(s) are needed?
    I ported a sector erase (in C) from 1.31 to uVision 2.20a using ap note 138 (etc.). (C161O, flash 0x0 - 0x3FFFF, ram 0x80000-0x8FFFF; 16 MHz.) After entering main() and before enabling interrupts,...
  • C166 preprocessor directive #message unknown
    I want to use the preprocessor directive #WARNING. But I get always an error. Example: #message "This is my own message" Compile error: error 315: unknown #directive 'message' I use the...