This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIClang compiling speed dramatically faster on MacOS than on Windows

Other Parts Discussed in Thread: CC1352P7

The compiling speed of TIClang is way faster on MacOS than on Windows, especially for large project. For example, a CC1352 SDK example takes more than 10 minutes to compile on my windows PC, but only takes 1 minute on Macbook Pro. My MBP is just an old model from 2017, the hardware performance is not better than my PC.

What is the reason of the difference? Is there a way to accelerate the compiling speed on windows?

Best regards,

Shuyang

  • Hello Shuyang,

    There is a known issue if FIPS mode is enabled:

    https://sir.ext.ti.com/jira/browse/EXT_EP-10985

    However, I suspect something else. Is your Windows PC a TI PC with the usual IT security software installed? There is certainly a known performance hit especially with compiling on our TI Windows PCs. Compilation on Linux and Mac is known to be faster because of this, even if the Windows PC has better specs.

    Thanks

    ki

  • Hi Ki,

    I don't think it is relavant either because I'm using Windows 10.

    I have tried with different machines including TI PC and my personal ones, the results were more or less the same. Also I've received feedbacks from a lot of customers about the compiling speed, with similar performance on Windows, so I don't think security software is the dominant reason here. From my observation, it just takes a lot longer to compile every single file on Windows that on MacOS, I'm just shocked by the difference which is like 10 times or more.

    Is there a tool to benchmark the performance of the compiler and maybe find some clues for the cause of the difference?

    Best regards,

    Shuyang

  • I'm just shocked by the difference which is like 10 times or more.

    Just to confirm - FIPS encryption is not enabled, correct?

  • No, I didn't touch any settings related to FIPS encryption.

    Best regards,

    Shuyang

  • Do you see this issue on Windows with all projects or is it more random?

    For example, a CC1352 SDK example takes more than 10 minutes to compile on my windows PC

    Which exact SDK example did you try? Does it happen to all of them?

    Thanks

    ki

  • Yes, it happens to all. Take simplelink_cc13xx_cc26xx_sdk_6_40_00_13 for an example, import the project from \simplelink_cc13xx_cc26xx_sdk_6_40_00_13\examples\rtos\LP_CC1352P7_1\ti_wisunfan\ns_br_src, this is a relatively large project. On my PC it takes ~15 minutes to compile, while only takes 1 minute on Macbook Pro(with Intel processor).

    I've observed this on multiple projects based on TIClang, like BLE/Zigbee projects... If you have a Macbook available, can you please verify the behavior? Thanks.

    Best regards,

    Shuyang

  • I built this example on several machines. here are my results:

    TI work laptop (WIndows 10, i7-12800H processor): Time to build: 5:44

    Home PC (Windows 11, i7-12400 processor): Time to build: 0:58

    Lab machine(Ubuntu 20.04, Core Q6600 processor): Time to build: 1:52

    As you can see, the TI work laptop took the longest time. The antivirus/security software on the TI machines is quite aggressive on Windows

    On my home Windows PC, things built much faster. My home PC has just the standard Windows Defender antivirus. It took less than a minute.

    My linux lab took almost 2 minutes but note that the Q6600 processor is over 15 years old.

    I don't have a macbook to try on right now.

    What is the specs of your home PC where you see slow performance? What antivirus is running there?

  • Hi Ki,

    Thanks for providing the detailed test result. I inspected my home PC carefully and found that an anti-virus software was installed without conscious which was holding back the compiling speed. I uninstalled the antivirus and the compiling time is back to normal, about 100s now. This performance is close to my expectation and also close to the result on my MBP.

    Thanks very much for the help here and the inspiration to look into the antivirus, it's happy to know the compiler is working as expected as well!

    Best regards,

    Shuyang

  • Thank you for the update. For your home PC, you can try whitelisting CCS and the compilers (perhaps whitelist the whole CCS install directory if using the compilers that came with it).