yep - I don't know why I slipped in that 'more portable' statement - it IS wrong. I lean on the compiler hard when backed up with tests so I get lazy and use 'unsigned' a lot - it's liberating to not be dependent on types. it's really hard to explain.Fred wrote: 2) If you use "int" then the code is actually NOT portable, whereas if you use char, short, long then it IS portable because the same behaviour AND accuracy and overflow etc will be present on both platforms. In the case of this chip alone, without porting it, a compiler flag change could totally break the code if int is used instead of an explicit type.
I read/write 'inside out' - 'right to left' - just habit I can handle either. I'll commonly write stuff like this:Fred wrote:"type OF name"
Code: Select all
uint32_t const *pThing = 0;
Code: Select all
const uint32_t* pThing = 0;
never used it, I've only heard about it in the last month or so. it appears to be another source managment tool. I suppose the mechanics are all the same.Fred wrote:How are you with Git?
I'm a windows guy, but I'm not new to linux. I was a slackware guy from the mid 90's . Windows has always worked well for me and all my mainstream dev tools have targeted it for decades, the IT guys get wierd when they see it on your machine too.
I'll find/read the averaging thread and see how I can contribute. I have to make sure I can meet your deadline too. Maybe I can just proto up some generic code and pass it on to you to merge and double check ? it looks like I really need to get on the linux wagon to be of any real help for you. this is a foss project, and it is expected I do have the full blown codewarrior suite (for all cores) sitting here too.