• Initialize constant pointer to pointer
    const int an_object = 0; const int * const MC_buf = &an_object; const int * buffer = MC_buf; This code was original using structs, but it is simplified in this example. It doesn't matter where...
  • Initialize constant pointer to pointer
    const int an_object = 0; const int * const MC_buf = &an_object; const int * buffer = MC_buf; This code was original using structs, but it is simplified in this example. It doesn't matter where...
  • Absolute location of constant tables in code space
    I'm looking for a way to absolutely locate a constant array in code space using the C51 compiler. I can use the 'code' memory location specifier to indicate the array should be located in program memory...
  • Absolute location of constant tables in code space
    I'm looking for a way to absolutely locate a constant array in code space using the C51 compiler. I can use the 'code' memory location specifier to indicate the array should be located in program memory...
  • Problem: Table of constants in an ASMed C file
    I want to define a table of constants like this: code const unsigned char bit_count_table[16] = { 0, 1, .... 4 }; in a C source file built with the ASM option. I get error A24: SEGMENT TYPE EXPECTED...