• Force function to be in CODE instead of ECODE
    Hi, I've configured the memory model to HUGE and I have more than 64kb ROM space. I'm working on a project using C compiler. I noticed that if I declare the ECODE class, all functions will be placed...
  • HOW TO FORCE C51 TO COMPILE ALL FUNCTIONS REENTRANT
    Hi, Do you know a way to tell the compiler (via #pragma or similar) all functions in the C file must be reentrant? I am using a source library running in several micros and I would not like to maintain...
  • Forcing compiler to define functions in ECODE space
    Hi everyone, I'm trying to force the CX51 compiler to put all the function from a specific module to ECODE memory space (to move it to external flash memory in future). But the compiler seems to apply...
  • how to force constants into hconst
    I am having a bit of a problem with constant arrays on the ds80c400 i.e. char y[] = {1,2,3,4}; Note: the ds80c400 has a 16M contiguous memory map. example 1: in the following code the array is...
  • Forcing FAR libraries
    I just ran across a case with C51 7.50 where the linker was not automatically selecting the far version of the library. My far pointers weren't working, despite the presence of XBANKING.A51. The problem...