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.

CCS - direct use of object files without sources



Hello together,

I would like to change an existing project to the use of almost no source code. The aim is to hide the implementation in an easy way; therefore I would not like to create libraries. Instead I would like to use the object files and just remove to source code. A few parts of the source code should be still available.

The constraint for my case is that I've a lot of SW modules. I'm using CCS 6.1.1.00022.

How can I do this?

Thanks in advance and best regards,

Chrisitan

  • I'm a bit confused; libraries are just collections of object files, and are easy to create. Why is this not the ideal solution?
  • That's kind of true, but libraries need an own project to be created and can be added to the project with the Extension .a.

    How I would add the object files with the extension .obj?

    I know it might be easy, but until now I never did it.

  • I'm still confused.

    Please describe your starting point.  Do you have source code?  Does someone else deliver several object files to you?  Or what?

    Then describe your goal.  What do you deliver to your customers?  A library?  A working executable?  What?

    Some questions regarding how you build ...  Do you want to conduct the builds from within CCS?  Or on a command line?  Or what?

    Thanks and regards,

    -George

  • I have an existing CCS project including all source code. I'm using the graphical IDE of CCS6. I don't use a command line. The out file (executable) is running on a C2000 DSP.

    My goal is to deliver that CCS project without all source code. Only a part of it should be available, so that changes in that "open" part can be done in order to let it again run on the same C2000 DSP with little modifications.

    Best regards,

    -Christian

  • ChrisTango said:
    How I would add the object files with the extension .obj?

    With CCS 6, if you add .obj files to the project, then CCS automatically passes the (pre-compiled) object files to the linker.

  • ChrisTango said:
    My goal is to deliver that CCS project without all source code. Only a part of it should be available, so that changes in that "open" part can be done in order to let it again run on the same C2000 DSP with little modifications.

    You cannot deliver that project as is.  You need to split it up into multiple projects.  Code which is not in the open part is organized into one CCS project where the output is a static library, and not an executable.  Please see this post for the key step in creating such a project.  Code which is in the open part is organized into a CCS project similar to what you have now, where the output is an executable.  Take the static library from the closed part CCS project and add it to this project like any other file.  This open part + library CCS project is what you deliver to your customer.

    It is possible to organize the closed part of the source into multiple libraries.  Each library is one CCS project.  Add each library to the open part CCS project that creates the executable.  

    Thanks and regards,

    -George

  • I tried and it worked. Thanks!

  • I will use this way later. At the moment I've not enough time to create another Project for the creating of a library.
    The solution of Chester works fine.
    BR
    Christian