Hi Petr
Thank you for your answer, I think I understand (or try to understand). I have plenty experience with most of cross compilers in industry and work close with compiler’s vendor. I always inform about every single smallest inconsistent or bug, because I expect high quality Ansi C compiler with full or almost full compliant with Ansi C standard. Indeed compilers sometimes produce wrong code when you use high level optimization, but if you do not open bug, compiler vendor will not fix it. I understand that “hardware depend code” what you mention is not such obvious, however we also write such code (outside Processor Expert) and now I am really, really worried that there is some problems with compiler…
From your answer I understand that:
1)FreeScale compiler is not Ansi C compliant (?) I change order of bits write. It is very bad and I want to know about suchsituationbecause it is possible impact in code write by me.
or
2)FreeScale code is not written correctly (intentionally or not, do not matter for me?) Compiler has full freedom to change writeorder(bits, bytes, words, whatever) if software engineer allow on it, of course if such optimization is allowed by Ansi C standard!Ansi Cstandard provide possibility to limit optimization but it is out of topic.
I do not care case 2) but feel free to ask a help or assistance, I have wide experience in this topic.
But if true is 1) case I want you to isolate problem and make pressure on compiler vendor in order to fix it. If such feature in compiler is intentionally, I need want to know about it, it has big impact on our products.
If you do not want to do this, please just isolate problem and send it to me, I will do pressure on compiler vendor. It is not make sense for me to use compiler with bugs in commercial use, to big risk for my company and my customers.
I would like to investigate problem further. Please provide questionable source code, it is very important to know about bugs in compiler.
Best Regards
/Grzegorz Konopko
Imotive.pl