Alex Orange wrote:
I see three differences between your two compiles:
1. The first is compiled for the 2013, the second for the 1121.
2. The files in each set are different files.
3. In the second set you do not show how setdco.o, I2C_master.o or
DS1631.o were compiled.
I would hope that the specific target doesn't effect whether source is
included or not. My best guess would be that perhaps you are compiling
setdco.o, I2C_master.o or DS1631.o differently, and w/o w/e flags
being set the final compile to binary couldn't find the source for
some and simply decided to dump the source for the others.
Hi Alex,
Thanks. Ok, to make it clearer, here is another project that does not
produce source in the listing. I just happen to use the previous as that
was the one I was interested in. I was looking for something typical
that had been seen before. Someday I'll get the gcc build going and
start looking under the hood, maybe I can help with it.
~~~
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "main.d" -MT"main.d" -o "main.o" "../main.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "i2c.d" -MT"i2c.d" -o "i2c.o" "../i2c.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "i2c_master.d" -MT"i2c_master.d" -o
"i2c_master.o" "../i2c_master.c"
msp430-gcc -mmcu=msp430x2013 -o"test.elf" ./main.o ./i2c.o ./i2c_master.o
msp430-objdump -S test.elf >test.lst
~~~
This time with a complete build. setdco was written in assembly but the
above has no assembly and is for the same target that does produce a
complete listing.
Best, Dan.
For instance:
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "thermocouple.d" -MT"thermocouple.d" -o
"thermocouple.o" "../thermocouple.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "i2c.d" -MT"i2c.d" -o "i2c.o" "../i2c.c"
msp430-gcc -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF "HE_util.d" -MT"HE_util.d" -o
"HE_util.o" "../HE_util.c"
msp430-gcc -mmcu=msp430x2013 -o"test.elf" ./thermocouple.o ./i2c.o
./HE_util.o
msp430-objdump -S test.elf >test.lst
~~~