WEKO3
アイテム
条件コンパイルディレクティブ中のマクロ変数によるC言語プロジェクトの複雑度の定量分析
https://ipsj.ixsq.nii.ac.jp/records/217306
https://ipsj.ixsq.nii.ac.jp/records/21730692046102-d602-494d-be60-c1de0657dd83
名前 / ファイル | ライセンス | アクション |
---|---|---|
![]() |
Copyright (c) 2022 by the Information Processing Society of Japan
|
|
オープンアクセス |
Item type | SIG Technical Reports(1) | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
公開日 | 2022-03-04 | |||||||||||
タイトル | ||||||||||||
タイトル | 条件コンパイルディレクティブ中のマクロ変数によるC言語プロジェクトの複雑度の定量分析 | |||||||||||
タイトル | ||||||||||||
言語 | en | |||||||||||
タイトル | A Quantitative Analysis of C Project Complexity by Macro Variables in Conditional Compilation Directives | |||||||||||
言語 | ||||||||||||
言語 | jpn | |||||||||||
キーワード | ||||||||||||
主題Scheme | Other | |||||||||||
主題 | 運用・保守 | |||||||||||
資源タイプ | ||||||||||||
資源タイプ識別子 | http://purl.org/coar/resource_type/c_18gh | |||||||||||
資源タイプ | technical report | |||||||||||
著者所属 | ||||||||||||
早稲田大学 | ||||||||||||
著者所属 | ||||||||||||
早稲田大学 | ||||||||||||
著者所属 | ||||||||||||
早稲田大学 | ||||||||||||
著者所属(英) | ||||||||||||
en | ||||||||||||
Waseda University | ||||||||||||
著者所属(英) | ||||||||||||
en | ||||||||||||
Waseda University | ||||||||||||
著者所属(英) | ||||||||||||
en | ||||||||||||
Waseda University | ||||||||||||
著者名 |
髙津, 周佑
× 髙津, 周佑
× 鷲崎, 弘宜
× 深澤, 良彰
|
|||||||||||
論文抄録 | ||||||||||||
内容記述タイプ | Other | |||||||||||
内容記述 | C プリプロセッサは大規模な C 言語プロジェクトにおいて広く利用されているが,特に条件コンパイルディレクティブは主要な役割を果たしている.その反面,可読性や保守性の低下を引き起こす要因とされており,複雑な条件コンパイルディレクティブに対するリファクタリング手法への需要が高い.本論文では,条件コンパイルディレクティブの局所化によるリファクタリングを前提とし,条件中に含まれるマクロ変数に着目した上で,CV 複雑度と呼ばれるメトリクスを導入する.実験によって,このメトリクスを用いて 43 の C 言語のオープンソースプロジェクトを定量分析した.その結果,75% のマクロ変数の利用は局所的であるものの,環境互換性目的で利用されるマクロ変数には,特に散らばっている傾向が見られることが示された. | |||||||||||
論文抄録(英) | ||||||||||||
内容記述タイプ | Other | |||||||||||
内容記述 | C preprocessors are widely used in large-scale C projects; especially conditional compilation directives play a major role. On the other hand, they are considered to be a source of readability and maintainability degradation, and there is a high demand for refactoring methods for complex conditional compilation directives. In this paper, we introduce a metric called CV complexity, which is based on the premise of refactoring conditional compilation directives by localizing them and focusing on the macro variables contained in the conditions. In our experiments, we quantitatively analyzed 43 C open-source projects using this metric. The results show that while the use of 75 % macro variables is localized, the macro variables used for environment compatibility purposes tend to be particularly scattered. | |||||||||||
書誌レコードID | ||||||||||||
収録物識別子タイプ | NCID | |||||||||||
収録物識別子 | AN10112981 | |||||||||||
書誌情報 |
研究報告ソフトウェア工学(SE) 巻 2022-SE-210, 号 20, p. 1-8, 発行日 2022-03-04 |
|||||||||||
ISSN | ||||||||||||
収録物識別子タイプ | ISSN | |||||||||||
収録物識別子 | 2188-8825 | |||||||||||
Notice | ||||||||||||
SIG Technical Reports are nonrefereed and hence may later appear in any journals, conferences, symposia, etc. | ||||||||||||
出版者 | ||||||||||||
言語 | ja | |||||||||||
出版者 | 情報処理学会 |