Compiler version recognition is essential in the realm of computer tools, not only facilitating comprehension ofthe compilation process but also offering crucial guidance for optimization endeavors. This study delves into an exhaustive exploration of the distinctions among various versions of $\mathbf{C}++$ compilers in GCC when compiling specific program source code. The analysis aims to precisely pinpoint the compiler version being used. To achieve this, we compile the source code in Annex 1 using different versions of C++ compilers in GCC and meticulously scrutinize the differences in compilation outcomes, encompassing aspects such as instruction sequence, optimization strategy, and code structure. Leveraging techniques from software engineering like judgment analysis, disassembly, and static analysis, we identify the distinctive characteristics of the code generated by diverse compilers and highlight the key features that serve as significant discriminators between varying compiler versions. Taking a step further, we introduce a novel model for compiler version recognition that leverages deep learning methodologies. Through the collection of a substantial volume of code samples produced by different compiler versions and employing the decision tree model for training, our model demonstrates exceptional performance on both the training set and the test set. It excels in accurately discerning the code generated by distinct compiler versions.


    Access

    Check access

    Check availability in my library

    Order at Subito €


    Export, share and cite



    Title :

    Research on compiler version recognition based on random forest algorithm


    Contributors:
    Hu, Xinyun (author) / Tang, Yuxian (author)


    Publication date :

    2024-10-23


    Size :

    630740 byte




    Type of media :

    Conference paper


    Type of material :

    Electronic Resource


    Language :

    English






    Car Trading Cycle Prediction based on Random Forest Algorithm

    Yu, Lei / Yan, Haizhang / Liu, Linkai et al. | IEEE | 2022


    Online Recognition of Aero Engine State Based on Improved Random Forest

    Zhang, Wei / Qu, Youyang / Liu, Yihan et al. | IEEE | 2024