没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
97页
SQMlint statically checks C source codes to find codes that deviate from any of MISRA C1 rules. The MISRA C rules are guidelines and can be used as inspection items of source code review. Some deviations from the rules can be detected by inspection tools. SQMlint checks C source codes against each of the MISRA C rules, and reports where codes deviate from any of the rules, thereby assisting you in source code review. The titles of MISRA C rules described in this manual, as well as the MISRA C rule inspection items for the MISRA C Rule Checker are based on the “Guidelines for the Use of the C Language in Vehicle Based Software” issued by MISRA.
资源推荐
资源详情
资源评论
REJ10J1314-0100
MISR
A
C Rule Checke
r
SQMlint V.1.03
Rev.1.00
Aug. 1, 2006
User's Manual
A
dd-in to Renesas' com
p
ilers
"MISRA" and the triangle logo are registered trademarks of The Motor Industry Research Association, held on behalf of the MISRA Consortium.
Keep safety first in your circuit designs!
z Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better and
more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury,
fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as
(i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap.
Notes regarding these materials
z These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to the
customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas
Technology Corporation, Renesas Solutions Corporation or a third party.
z Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, or infringement of any third-
party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in
these materials.
z All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on
products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation and Renesas Solutions
Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas
Technology Corporation, Renesas Solutions Corporation or an authorized Renesas Technology product distributor for the latest product
information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical
errors. Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, liability, or other loss
rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corporation and Renesas
Solutions Corporation by various means, including the Renesas home page (http://www.renesas.com).
z When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms,
please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products.
Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, liability or other loss
resulting from the information contained herein.
z Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in
which human life is potentially at stake. Please contact Renesas Technology Corporation, Renesas Solutions Corporation or an authorized
Renesas Technology product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus
or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
z The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce in
whole or in part these materials.
z If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the
Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the
export control laws and regulations of Japan and/or the country of destination is prohibited.
z Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products
contained therein.
For inquiries about the contents of this document or product, fill in the text file the installer generates in the following directory and email to your
local distributor.
\SUPPORT\Product-name\SUPPORT.TXT
Renesas Tools Homepage http://www.renesas.com/en/tools
Contents
- i -
1. Introduction.............................................................................................................................. 1
2. Overview................................................................................................................................... 2
2.1. Position ............................................................................................................................... 3
2.2. Input/Output Files................................................................................................................ 3
3. How to Use SQMlint ................................................................................................................ 4
3.1. When you’re using C Compiler Package for M16C family.................................................. 4
3.2. When you’re using M32R family ......................................................................................... 7
3.3. When you’re using SuperH RISC engine family................................................................. 9
3.3.1. Options.......................................................................................................................... 9
3.3.2. Error messages...........................................................................................................10
3.4. When you’re using H8S, H8/300 series............................................................................ 12
3.4.1. Options........................................................................................................................ 12
3.4.2. Error messages...........................................................................................................14
4. Report Specifications ........................................................................................................... 15
4.1. Report Message................................................................................................................ 15
4.2. Report File......................................................................................................................... 15
4.3. Compile Errors .................................................................................................................. 16
5. Confirming the Result........................................................................................................... 17
5.1. Referring to Report Files to Confirm ................................................................................. 17
5.2. Referring to Report Messages to Confirm ........................................................................ 17
5.3. Using the SQMmerger to Confirm..................................................................................... 17
6. List of Supported MISRA C Rules........................................................................................ 18
7. Handling of Each MISRA C Rule.......................................................................................... 19
7.1. Rule 1................................................................................................................................ 20
7.2. Rule 2 (Not supported)...................................................................................................... 20
7.3. Rule 3 (Not supported)...................................................................................................... 20
7.4. Rule 4 (Not supported)...................................................................................................... 21
7.5. Rule 5................................................................................................................................ 21
7.6. Rule 6 (Not supported)...................................................................................................... 21
7.7. Rule 7 (Not supported)...................................................................................................... 22
7.8. Rule 8................................................................................................................................ 22
7.9. Rule 9 (Not supported)...................................................................................................... 22
7.10. Rule 10 (Not supported)..................................................................................................22
7.11. Rule 11 (Not supported) .................................................................................................. 23
7.12. Rule 12............................................................................................................................ 24
7.13. Rule 13............................................................................................................................ 25
7.14. Rule 14............................................................................................................................ 26
7.15. Rule 15 (Not Supported) ................................................................................................. 26
7.16. Rule 16 (Not Supported) ................................................................................................. 26
Contents
- ii -
7.17. Rule 17............................................................................................................................ 27
7.18. Rule 18............................................................................................................................ 28
7.19. Rule 19............................................................................................................................ 29
7.20. Rule 20............................................................................................................................ 29
7.21. Rule 21............................................................................................................................ 30
7.22. Rule 22............................................................................................................................ 31
7.23. Rule 23 (Not Supported) ................................................................................................. 31
7.24. Rule 24............................................................................................................................ 32
7.25. Rule 25 (Not supported)..................................................................................................32
7.26. Rule 26 (Not Supported) ................................................................................................. 33
7.27. Rule 27 (Not Supported) ................................................................................................. 33
7.28. Rule 28............................................................................................................................ 33
7.29. Rule 29............................................................................................................................ 34
7.30. Rule 30 (Not supported)..................................................................................................36
7.31. Rule 31............................................................................................................................ 36
7.32. Rule 32............................................................................................................................ 37
7.33. Rule 33............................................................................................................................ 38
7.34. Rule 34............................................................................................................................ 39
7.35. Rule 35............................................................................................................................ 40
7.36. Rule 36............................................................................................................................ 40
7.37. Rule 37............................................................................................................................ 41
7.38. Rule 38............................................................................................................................ 42
7.39. Rule 39............................................................................................................................ 42
7.40. Rule 40............................................................................................................................ 43
7.41. Rule 41 (Not supported)..................................................................................................43
7.42. Rule 42............................................................................................................................ 43
7.43. Rule 43............................................................................................................................ 44
7.44. Rule 44............................................................................................................................ 45
7.45. Rule 45............................................................................................................................ 46
7.46. Rule 46............................................................................................................................ 47
7.47. Rule 47 (Not supported)..................................................................................................49
7.48. Rule 48............................................................................................................................ 49
7.49. Rule 49............................................................................................................................ 50
7.50. Rule 50............................................................................................................................ 50
7.51. Rule 51............................................................................................................................ 51
7.52. Rule 52 (Not supported)..................................................................................................51
7.53. Rule 53............................................................................................................................ 52
7.54. Rule 54............................................................................................................................ 52
7.55. Rule 55............................................................................................................................ 53
7.56. Rule 56............................................................................................................................ 53
7.57. Rule 57............................................................................................................................ 53
7.58. Rule 58............................................................................................................................ 54
7.59. Rule 59............................................................................................................................ 54
7.60. Rule 60............................................................................................................................ 55
7.61. Rule 61............................................................................................................................ 55
7.62. Rule 62............................................................................................................................ 55
Contents
- iii -
7.63. Rule 63............................................................................................................................ 56
7.64. Rule 64............................................................................................................................ 56
7.65. Rule 65............................................................................................................................ 57
7.66. Rule 66 (Not supported)..................................................................................................57
7.67. Rule 67 (Not supported)..................................................................................................57
7.68. Rule 68............................................................................................................................ 58
7.69. Rule 69............................................................................................................................ 58
7.70. Rule 70............................................................................................................................ 59
7.71. Rule 71............................................................................................................................ 59
7.72. Rule 72............................................................................................................................ 60
7.73. Rule 73............................................................................................................................ 60
7.74. Rule 74............................................................................................................................ 61
7.75. Rule 75............................................................................................................................ 61
7.76. Rule 76............................................................................................................................ 62
7.77. Rule 77............................................................................................................................ 62
7.78. Rule 78............................................................................................................................ 63
7.79. Rule 79............................................................................................................................ 63
7.80. Rule 80............................................................................................................................ 63
7.81. Rule 81 (Not supported)..................................................................................................64
7.82. Rule 82............................................................................................................................ 64
7.83. Rule 83............................................................................................................................ 65
7.84. Rule 84............................................................................................................................ 65
7.85. Rule 85............................................................................................................................ 66
7.86. Rule 86 (Not supported)..................................................................................................66
7.87. Rule 87 (Not supported)..................................................................................................66
7.88. Rule 88 (Not supported)..................................................................................................67
7.89. Rule 88 (Not supported)..................................................................................................67
7.90. Rule 90 (Not supported)..................................................................................................67
7.91. Rule 91 (Not supported)..................................................................................................67
7.92. Rule 92 (Not supported)..................................................................................................68
7.93. Rule 93 (Not supported)..................................................................................................68
7.94. Rule 94 (Not supported)..................................................................................................68
7.95. Rule 95 (Not supported)..................................................................................................68
7.96. Rule 96 (Not supported)..................................................................................................69
7.97. Rule 97 (Not supported)..................................................................................................69
7.98. Rule 98 (Not supported)..................................................................................................69
7.99. Rule 99............................................................................................................................ 69
7.100. Rule 100 (Not supported).............................................................................................. 70
7.101. Rule 101........................................................................................................................ 70
7.102. Rule 102........................................................................................................................ 71
7.103. Rule 103........................................................................................................................ 71
7.104. Rule 104........................................................................................................................ 72
7.105. Rule 105........................................................................................................................ 73
7.106. Rule 106........................................................................................................................ 74
7.107. Rule 107 (Not supported).............................................................................................. 75
7.108. Rule 108........................................................................................................................ 75
剩余96页未读,继续阅读
资源评论
- xiexinxind2013-04-18我需要检测C语言代码中的死循环,这个文档对我没什么帮助。不过,还是谢谢了。
- knifeflying2012-12-01唉,c语言的标准也真多啊,这个算是一个比较成熟的标准吧。这个使用起来不是很方便,还是lint-pc用起来简单。
biyuntian2018
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功