Reduction of Hidden Troubles in the DSP Programs Using MISRA Guidelines
Gu Ying · Informatization Research · 2009
The real-time DSP technologies with complicated algorithms are realized with DSP chip these days.In order to take advantage of assemble language and C language,we often program with hybrid method.In high-security and long-time working systems,the robustness of the DSP programs is very critical.In this paper,we explain the hidden troubles buried by non-normalized code,the mistakes made by programmer,the misunderstanding of compiler and the language in DSP chip development from the viewpoint of MISRA-C guidelines.The problems of the resulted error and the program corruption caused by those hidden troubles are mentioned.On the other hand,we also introduce the weak-point of MISRA-C,which gives up the high-efficient and low resource-occupied Union in C language.In our opinion,the Union could be cautiously used if the details of Union have been observed clearly.