Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
2012 / MISRA / EW_MisraCReference.pdf
Скачиваний:
147
Добавлен:
10.02.2015
Размер:
650.9 Кб
Скачать

General options

This chapter describes the general MISRA C options in the IAR Embedded

Workbench®.

For information about how options can be set, see the IAR Embedded

Workbench® IDE User Guide.

MISRA C

Use the options on the MISRA C page to control how the IAR Embedded Workbench checks the source code for deviations from the MISRA C rules. The settings will be used for both the compiler and the linker.

If you want the compiler to check different sets of rules, you can override these settings in the C/C++ Compiler category.

Figure 1: MISRA C general options

1

MISRA C

ENABLE MISRA C

Select this option to enable checking the source code for deviations from the MISRA C rules during compilation and linking. Only the rules selected in the scroll list will be checked.

LOG MISRA C SETTINGS

Select this option to generate a MISRA C log during compilation and linking. This is a list of the rules that are enabled—but not necessarily checked—and a list of rules that are actually checked.

SET ACTIVE MISRA C RULES

Only the rules you select in the scroll list will be checked during compilation and linking. Click one of the buttons None, Required, or All to select or deselect several rules with one click. The Required button selects all 93 rules that are categorized by the

Guidelines for the Use of the C Language in Vehicle Based Software as required and deselects the rules that are categorized as advisory.

IAR Embedded Workbench® MISRA C

2 Reference Guide

Соседние файлы в папке MISRA