V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
maobush

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

  •  
  •   maobush · Oct 6, 2025 via iPhone · 2502 views
    This topic created in 202 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   ·   4715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.