• Array initialization inside struct
    Hello, I try compile this code (.c) with --c99 option struct sx { char c; char a[]; }; static struct sx xx = { 1, {[5] = 0} }; and have error error: #146: too many initializer values How...
  • Anonymous union inside a struct?
    The C complier doesn't like this piece of source code: ------------------------- struct MyUart { union { unsigned char rx; // read unsigned char tx; // write }; unsigned char control; // r...
  • static inside struct
    Hi, I have problem with struct. Here is my code, please correct me. struct main_func { static int kval; int temp3; char buf[8]; }main_f; If I do not put "static" to "int kval", everything...
  • placing/accessing constants inside flash memory
    Subject says it all. I want to place some tag into flash and than compare it with the data in my SRAM. I know that it is simple but it is hard to start. Please advise. Thanks.
  • Placing struct functions on specific regions
    What is the proper syntax to place struct functions in specific regions? Using something like the example below appears to ignore the #pragma statement, e.g. the object code for foo::bar() is not placed...