• problem with stack pointer for reentrant functions
    Hello, i've got a problem when linking my project, I use large reentrant functions , so in the startup file, i want to initialise the variable C_XBP. But when i want to link my project, there is an...
  • pointer passing
    I don't know if this is me or the compiler. I have a declaration PSD_SIGNAL_DEF far psd_temp_def = {CS_TEMPERATURE_PSD_ADDRESS,CS_TEMPERATURE_PORT,CS_TEMPERATURE_PIN,0}; and a call psd_temp_def...
  • Using Generic Pointers
    I need to use generic pointers so I can access XDATA and CODE memory with my message handler. How do I know what the memory type is at runtime? Is there a function or macro for this? I know the memory...
  • C251 memory pointer problem
    Hi, Is this a valid construct in you Keil C-251 compiler? unsigned char data buf[20]; typedef struct { int i; int j; } TEST_T; #define GetStruct() (*(TEST_T *)&buf[2]) void Test(void)...
  • Problem passing nested struct with pointer on the stack
    The following code (part of a simple GUI running on a 251 platform with an LCD) attempts to pass a struct which is a member of another struct on the stack. A pointer to the container struct is dereferenced...