How to rebuild the C6000 RTS

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

How To...

How do I rebuild the C6000 RTS library?

Environment

C6000, Run-Time Support Library, Code Generation Tools

Answer

Rebuilding the RTS that comes with CCSv3.3

To rebuild the RTS that comes with CGTools v6.0.8 (default with CCSv3.3) perform the following steps:

At this point you can do one of two things. You can either extract all the source and rebuild the library inside CCS, or you can extract only the source file(s) you want to modify and then repack them into the .src file and rebuild it that way.

To rebuild inside CCS:

If you want to rebuild the .rts archive via command line:

The second is a bit easier but either should work practically the same.

Rebuilding the RTS from newer versions of CGT

The newer versions of the Code Generation Tools include a makefile and perl script you execute to rebuild the RTS. Please refer to the rtssrc_zip_README.txt file that can be found inside the \lib\rtssrc subfolder created by extracting rtssrc.zip. Alternatively you can create a simple library project and include all the RTS source files then rebuild into a library. The library build process is discussed in the Compiler Guide.

The code generation tools releases typically include a certain default set of runtime libraries built for various combinations of devices/big, little endian/COFF, ELF/exception handling and so on. To see the default options used to build the runtime libraries, take a look at the file mkrts.pl in \lib\rtssrc\SHARED.

The Makefile found in \lib\rtssrc contains the list of libraries and the options used to build each of those libraries, defined by the OPT_XXX macros.

Then build using: gmake rts6400_custom.lib


Note that you would need to add the CGT's \bin folder to your Windows PATH environment variable before running gmake, so the compiler can be invoked during the build process. This can be done temporarily within the command prompt by typing in PATH=<CGT_folder_path>;%PATH%.

Leave a Comment

Comments

Comments on How to rebuild the C6000 RTS


Deepthpk said ...

in the section "If you want to rebuild the .rts archive: " The command for archiving is In the command prompt again type in ar6x r rts.src <filename> <filename>

use --k option along with mk6x to overwrite any extracted files

--Deepthpk 07:45, 4 October 2010 (CDT)

Wang Tianwei said ...

Command ar6x -r <filename> <filename>... should be ar6x -r rts.src <filename> <filename>... Otherwise you will get corrupt member header error.


--Wang Tianwei 21:06, 14 July 2011 (CDT)

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox