DSPRelated.com
Forums

Command line compile (I think I'm close)

Started by sr_gamer July 23, 2009
My next question is when I do rebuild all I get in the code composer build window, how can I duplicate this from the command line?

[driver.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/home/BlackHawk/example/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "driver.c"

[module1.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/home/BlackHawk/example/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "module1.c"

[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
This produces example.out which when written to ram and run returns the expected output. This is great, but I want to duplicate the compile from the command line. I've tried quite a variety of things in a little batch file called go.bat. Several things I've tried actually produce example.out, however something must not be linked correctly, because the desired output is never produced from the command line compiled .out.

Suggestions?

go.bat:
@cls

cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf driver.c

cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf module1.c

cl2000 -@ Debug.lkf

@echo off
rem cl2000 -v28 -fr Debug module1.c

rem cl2000 -v28 -fr Debug driver.c -i C:/CCStudio_v3.3/C2000/cgtools/include

rem cl2000 -@ Debug.lkf

@echo off

rem cl2000 -g -pdsw225 -fr Debug -v28 -@ Debug.lkf driver.c

rem cl2000 -g -pdsw225 -fr Debug -v28 -@ Debug.lkf module1.c

rem cl2000 -@ Debug.lkf
@echo off

rem cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf driver.c

rem cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf module1.c

rem cl2000 -@ Debug.lkf
@echo off

rem -i C:/CCStudio_v3.3/C2000/cgtools/include

rem cl2000 -v28 -fr Debug driver.c -@ Debug.lkf -l RAM_CMD.cmd

@echo off

rem cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf driver.c

@echo off

rem cl2000 -g -v28 -ol1 driver.c -z module1.obj -l RAM_CMD.cmd -l Debug.lkf -o driver

@echo off

rem cl2000 -v28 -@ Debug.lkf driver.c -z module1.obj -o driver

rem cl2000 -g -pdsw225 -ml -v28 module1.c -z driver.obj

rem cl2000 -g -pdsw225 -fr driver.c -z module1.obj

rem cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf driver.c

rem cl2000 -g -pdsw225 -fr Debug -d _DEBUG -d LARGE_MODEL -ml -v28 -@ Debug.lkf module1.c

rem cl2000 -@ Debug.lkf

rem -i"C:/CCStudio_v3.3/C2000/xdais/include"
rem -i"C:/CCStudio_v3.3/bios_5_31_02/packages/ti/bios/include"
rem -i"C:/CCStudio_v3.3/bios_5_31_02/packages/ti/rtdx/include/c2000"
rem -i"C:/CCStudio_v3.3/C2000/cgtools/include"

_____________________________________