Question: Wants to put initialized data right after code and be re-initialized as binary code without using CINIT. Bootloading - would like not to have the CINIT section copy information from program into data. Rather he would like to have the data section pre-initialized. The way it works now you need twice as much memory because the data starts in program memory and gets bootloaded and then moved into data memory. :

Answer: Compile all constants separately in one .const section and compile separately with -mb option. Link .const and .bss contiguously - only restriction is that they must both be able to fit on one 64k page.


Device: TMS320C3x
Category: TI Tools
Detail: Code Generation Tools
Detail2: Compiler
Title: Initialized Data Right After Code
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0003227

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!