JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
プロシージャがインラインアセンブラコードを含んでいます。 このワーニングクラスはMixed Assembly and Codeの上位集合となります。
| クラス名 | Inline Assembly Code | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 日本語クラス名 | インラインアセンブラコードの使用 | |||||||||||||||||||||
| クラス分類 | セキュリティ (security) | |||||||||||||||||||||
| ニーモニック | LANG.ASM | |||||||||||||||||||||
| カテゴリー |
|
|||||||||||||||||||||
| 対応言語 | C のみ利用可能です。 C++ は利用できません。 |
|||||||||||||||||||||
| 有効/無効設定 | このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル
(configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Inline Assembly Code" |
void do_something(void);
void use_asm(void){
asm("CLI"); /* 'Inline Assembly Code' warning issued here (covers both occurrences) */
/* ('Mixed Assembly and Code' warning also issued) */
do_something();
asm("STI");
}
void only_asm(){
asm("CLI"); /* 'Inline Assembly Code' warning issued here */
/* (procedure contains no source, so no 'Mixed Assembly and Code' warning) */
asm("STI");
}
設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。