To provide a compiler capable of performing optional specialization for an optional generic subprogram.
A source program 100 includes a description which designates a specialization subprogram to the generic subprogram and a description which sets a specialization condition thereof. A syntax analysis part 102 records the specialization subprogram and the specialization condition on a specialization information table 111. A specialization detection part 104 detects a call of the generic subprogram to which the specialized subprogram is designated. A specialization condition determination part 105 determines whether the specialization condition of the specialization subprogram corresponding to the detected generic subprogram is established in compiling or not. A code conversion-generation part 106 converts, when it is determined that whether the specialization condition is established in compiling is indefinite, a code for calling the generic subprogram to a code for calling the specialization subprogram in establishment of the specialization condition.
COPYRIGHT: (C)2009,JPO&INPIT
JP2002259135A |
蒲池恒彦、草野和寛、末広謙二、妹尾義樹、田村正典、左近彰一,Cenju-3用HPF処理系の実現,NEC技報,日本,株式会社NECクリエイティブ,1995年12月25日,第48巻,第12号(通巻322号),p.132
小川宏高、松岡 聡,部分計算を用いたMPIプログラム最適化システムOMPI,情報処理学会論文誌,日本,社団法人情報処理学会,1998年 6月15日,第39巻,第6号,p.1703
天野憲樹、渡部卓雄,LEAD:動的適応可能なソフトウェアを構成する言語の設計と実装,情報処理学会論文誌,日本,社団法人情報処理学会,1998年 9月15日,第39巻,第9号,pp.2649~2658