• Initializing a const code structure with __DATE__
    Hi everyone, I have the following working code: typedef struct { int spam; int eggs; char padding[200]; } MyStruct; const char code foo[] = "This is a string."; const MyStruct code bar =...
  • Initializing a const code structure with __DATE__
    Hi everyone, I have the following working code: typedef struct { int spam; int eggs; char padding[200]; } MyStruct; const char code foo[] = "This is a string."; const MyStruct code bar =...
  • const struct/unon initialization proble.
    Hi, with the following sample code... typedef __packed struct { uint8_t field_1; uint8_t field_2; uint8_t field_3; uint8_t field_4; } T_Sub; typedef __packed struct { T_Sub Sub; uint8_t...
  • Initialized const at fixed location?
    Hi! I've got a piece of source in my current project which represents a balanced binary tree, built from a load of preinitialized structs in C. All that needs to be visible from the "outside" is...
  • const data is always initialized
    Hi, I have a product with some ROM containing some constant data and regular flash to keep code. I would like to declare a data structure in my program to access the data in ROM and I have tried...