News for hackers. Stuff that matters.
Re:I think C++ is still a desirable coding platform compared... by skywal_l on Wednesday November 22, 2023 @10:45AM (#38380761)
Use LTO if that's a problem.

    [profile.release] # A profile to try to minimize the size
    panic = "abort" # Abort on Panic
    strip = true
    opt-level = "z" # Optimize For Size
    lto = true # Enable Link Time Optimization (LTO)
    codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization
Re:I think C++ is still a desirable coding platform compared... by synergy20 on Wednesday November 22, 2023 @10:59AM (#38380950)
it helps, I tried 'how to make rust the minimal in size', but still, it's like 10x of the size comparing to c++ with shared libraries.