• Optimiser Problems - common block subroutines
    Does any one else have problems with the higher levels of optimisation available to C51? With common block subroutines switched on, sometimes, just sometimes, C51 will generate completely wrong code...
  • call tree manipulation and common block subroutines
    Hello, I am using a function pointer table, defined in an independent c file as this: /* file: sensor_interface.c */ sensor_driver_t code sensor_drivers[Sensor_Drv_MAX] = { { &elect_Initialize...
  • How to analyze common block subroutines and its call tree?
    I got a problem while my compiler works with OT(9), the problem is the stack pointer underflow and I have validated. The reason is OT(9) created new Common Block Subroutines in application, and some...
  • Subroutines
    I have file with many subroutines. How can I use this file in my project? I have problem that in output hex file are all subroutines (used and NOT USED) example: main.c extern void Sub1(void);...
  • Linker exceeding common bank
    Setup: Common Bank (0x0000 - 0x7FFF), Bank0(0x8000 - 0xFFFF) and Bank1(0x8000 - 0xFFFF) Using Lx51 linker I observed that linker puts data in area outside common bank. Mainly it has been observed...