• initializing a const derived object
    I would like to put a derived object in const memory and initialize it like in the example code below. it works fine as long as _der_test is not derived from _test, if it is, the I get an error ...
  • 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 =...
  • 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...
  • Relocatable code with const data
    I need to have a relocatable code with const data referenced by the code. Can anybody help on how the code / linker commands be organised