This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28377S: How to link obj files?

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

Hi.

I don't want to show all the code content to other companies for security reasons.

So, I leave a portion of the code and the rest use only obj files. There is a problem here.

I tried searching, but I could not find a related way.

Who can give me advice?

  • There are many solutions.
    Fo example: place your source out of your project folder or even out of workspace and add links to these files into your project.
  • Min Kim1 said:
    I don't want to show all the code content to other companies for security reasons.

    Another solution to consider is a static library project.  A static library is a collection of object files.  These object files provides functions (and sometimes data) which are called by some other end user program.  The best known example is the runtime support (RTS) library which comes with the compiler.  Organize your source code into a CCS project.  Follow the directions in the article Creating a New CCS Project (which is part of a larger article).  Be sure to select an Output Type of Static Library, and not Executable.  You will create yet other executable projects which, for testing, call functions in your library.  All you send to your customers is the library file, and not the CCS project which creates it.  

    To further protect your code, consider not including debug information.  By default, the compiler adds debug information to every object file.  Debug information is read by debuggers like CCS to know things like the addresses and types of variables, how to map an address to a source line, and so on.  To tell the compiler not to include debug information, use the build option --symdebug:none.  Because this prevents anyone, including you, from debugging the code, add this option late in the development process.

    Thanks and regards,

    -George