This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I eliminate startup code from my project

I have a simple project that contains just a few subroutines. A PC utility reads the Intel hex file and downloads it via CAN to my target who places it in RAM. My target software can then make use of these subroutines.

I have no problems in implementing this but I would like to eliminate the startup code from the project since I do not use it and would rather not have it taking up RAM space or adding additional download time. I tried deleting Start166.a66 from my project but start up code is still linked in from somewhere. (I can see it in my proj.m66 listing file, it is called C_STARTUP_CODE) How do I eliminate it???

Thanks in advance,
Walt

Parents
  • I experimented a little with linker options. Try adding

    NOVECTAB SECSIZE(?C_STARTUP_CODE%ICODE (0))
    
    to Options for Target -> L166 Misc -> Misc Controls.
    The NOVECTAB control eliminates the interrupt vector table as well (which, in your case, must consist of only one entry). The SECSIZE control produces a warning, but it's no big deal.
    Regards,
    Mike.

Reply
  • I experimented a little with linker options. Try adding

    NOVECTAB SECSIZE(?C_STARTUP_CODE%ICODE (0))
    
    to Options for Target -> L166 Misc -> Misc Controls.
    The NOVECTAB control eliminates the interrupt vector table as well (which, in your case, must consist of only one entry). The SECSIZE control produces a warning, but it's no big deal.
    Regards,
    Mike.

Children