Hi,
I'm trying to do a simple printf using the ccsv4\scripting\examples\loadti\loadti.bat file. I also tried a fprintf, but both fail without an error message...
Here is my command line to build the .out file (basically recopied from the build generated by the IDE, but combined into a single command):
"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\bin\cl6x.exe" -mv64+ -g --fp_mode=strict --sat_reassoc=off --fp_reassoc=on --mem_model:const=data --mem_model:data=far_aggregates -I"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\include" test.c -z --reread_libs --rom_model -i="C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" -l"rts64plus.lib" -o=test.out
"C:\Program Files\Texas Instruments\ccsv4\scripting\examples\loadti\loadti.bat" -c "C:\Program Files\Texas Instruments\ccsv4\scripting\examples\C64\tisim_c64xple.ccxml" -l test.out
Here is the content of my test.c file (just a printf):
#include <stdio.h>
void main(void)
{
printf("Hello World\n");
return;
}
Here is the content of my test.c file (with a fprintf):
void main(void)
{
FILE *fileptr = NULL;
fileptr = fopen ("test.txt" ,"w");
fprintf (fileptr, "Hello world!");
fclose (fileptr);
return;
}
Both fail.
If I run the same code inside the IDE, it works.
Has anyone got the the DSS command line based simulator to work with standard C I/O?
Thanks
Eric