I wrote some code for ring buffers and I thought of testing it with a MingW with Eclipse on the PC first so I can make sure all functions are working correctly before loading it onto the MCU. Plus, compiling and debugging are faster on the PC compared to loading it onto MSP430.
Except I'm getting all these warnings complaining about integer overflows (comparing 8-bit definitions and assigning values to uint8_t) and integer casting pointer problems that I don't get in CCS. These warnings doesn't seem to be serious but when I compiled and run the program, the return values of the functions are all wrong - definition assignments to uint8_t typed variables seems to fail, all of them.
The project I'm working on is more software-based than hardware. I've got another guy working purely on another layer which is entirely software-based, though he does call functions from my part. Eventually, our code will be merged. I'm not sure if it's gonna be a problem since he doesn't use CCS for writing C code. For my own testing, it'd be great if you guys can help me with:
- Which dialect of C does CCS use? (TI 4.4.4 is my compiler version just in case it's necessary)
- How to set up another compiler to be able to compile like the TI compiler?
- Can I use CCS's TI compiler to do general purpose C coding for code verification - like a simulator maybe?
I'm out of my depth when it comes to compilers so I may have used all the wrong terminology when describing the problem. Cheers.