maobush

M4 芯片的 macos 中 C++编译运行问题

  •  
  •   maobush · Oct 6, 2025 via iPhone · 2549 views
    This topic created in 218 days ago, the information mentioned may be changed or developed.
    在 M 芯片的 macos 系统上,通过 terminal 编译运行一个简单的 C++程序,比如 helloworld ,编译完成后,第一次运行程序耗时比较长,第二次重复运行时就比较快,前者慢 4 倍。

    如果改动代码并重新编译,再次运行程序耗时就又比较长了,大家遇到过这样的问题吗
    2 replies    2025-10-06 22:19:55 +08:00
    lslqtz
        1
    lslqtz  
       Oct 6, 2025   ❤️ 4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 19:29 · PVG 03:29 · LAX 12:29 · JFK 15:29
    ♥ Do have faith in what you're doing.