When I compile a file without specifying an output file name, and then run it using loadti.bat (Cygwin/windows 7), it generates the correct output. However, when I rename the executable or use the linker option -o to give the executable a name other than a.out, no output is generated. Why? How do I fix this?
For example,
CYGWIN-tcsh:7.4.2 6> cat hello.c
#include <stdio.h>
main()
{
printf("hello world\n");
}
CYGWIN-tcsh:7.4.2 7> cl6x hello.c -z C6678_unified.cmd rts6200.lib
<Linking>
CYGWIN-tcsh:7.4.2 8> loadti.bat -c sim_c66_le.ccxml a.out
***** DSS Generic Loader *****
START: 16:04:51 GMT-0500 (CDT)
Configuring Debug Server for specified target...
Done
TARGET: C6678 Device Functional Simulator, Little Endian_0
Connecting to target...
testEnv.outFiles: a.out
Loading a.out
Done
Target running...
Interrupt to abort . . .
hello world
NORMAL COMPLETION: 4020 cycles
END: 16:05:22 GMT-0500 (CDT)
CYGWIN-tcsh:7.4.2 9> cp a.out aa
CYGWIN-tcsh:7.4.2 10> loadti.bat -c sim_c66_le.ccxml aa
***** DSS Generic Loader *****
START: 16:05:38 GMT-0500 (CDT)
Configuring Debug Server for specified target...
Done
TARGET: C6678 Device Functional Simulator, Little Endian_0
Connecting to target...
testEnv.outFiles: aa
Loading aa
CYGWIN-tcsh:7.4.2 11> cl6x hello.c -z -o aa c6678_unified.cmd rts6200.lib
<Linking>
CYGWIN-tcsh:7.4.2 12> loadti.bat -c sim_c66_le.ccxml aa
***** DSS Generic Loader *****
START: 16:06:32 GMT-0500 (CDT)
Configuring Debug Server for specified target...
Done
TARGET: C6678 Device Functional Simulator, Little Endian_0
Connecting to target...
testEnv.outFiles: aa
Loading aa
CYGWIN-tcsh:7.4.2 13> cl6x hello.c -mv6600 -z -o aa C6678_unified.cmd $rts66
<Linking>
CYGWIN-tcsh:7.4.2 14> load66 aa
***** DSS Generic Loader *****
START: 16:18:45 GMT-0500 (CDT)
Configuring Debug Server for specified target...
Done
TARGET: C6678 Device Functional Simulator, Little Endian_0
Connecting to target...
testEnv.outFiles: aa
Loading aa
CYGWIN-tcsh:7.4.2 15>
mv aa a.out
CYGWIN-tcsh:7.4.2 24> loadti.bat -c c66_sim_le.ccxml a.out
***** DSS Generic Loader *****
START: 16:23:45 GMT-0500 (CDT)
Configuring Debug Server for specified target...
Done
TARGET: C6678 Device Functional Simulator, Little Endian_0
Connecting to target...
testEnv.outFiles: a.out
Loading a.out
Done
Target running...
Interrupt to abort . . .
hello world
NORMAL COMPLETION: 3764 cycles