www.gusucode.com > rtwdemos 工具箱matlab源码程序 > rtwdemos/crl_demo/getCorrectCrlForSelectedCompiler.m

    function mycrl=getCorrectCrlForSelectedCompiler( model )
    %used for the model rtwdemo_crlalign
    MinGWcrl='Data Alignment Examples for MinGW';
    othercrl='Data Alignment Examples for Non-MinGW';
    if (strcmp(model,'rtwdemo_crlalignperf'))
        %used for the model rtwdemo_crlalignperf
        MinGWcrl='SIMD Single 5x5 Element-wise Mul for MinGW';
        othercrl='SIMD Single 5x5 Element-wise Mul for Non-MinGW';
    end
    mycrl=othercrl;
    tc = rtwprivate('getCompilerForModel',model);
    
    if (~isempty(tc) && ispc && ~isempty(strfind(tc.compStr, 'GNU')))
        mycrl=MinGWcrl;
    end
end