senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Thursday, 18-Oct-2018 10:04:43 JST Masaki Hara Masaki Hara

    https://users.rust-lang.org/t/why-is-a-rust-executable-smaller-than-kotlin-native/21210/24
    「Kotlin NativeもRustもLLVMを使っているのに、なんでRustのほうが生成されるバイナリサイズが小さいの?」という質問から派生して、Rustバイナリをさらに小さくする方法まとめみたいになってる。
    もちろんLLVMを使っていることとバイナリサイズに直接的な関係はない

    In conversation Thursday, 18-Oct-2018 10:04:43 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: discourse-cdn-sjc1.com
      Why is a rust executable smaller than Kotlin-native?
      from The Rust Programming Language Forum
      Minimize Size on Stable Rust (>=1.28.0) Modify main.rs to remove jemalloc allocator and use the system allocator instead: use std::alloc::System; #[global_allocator] static A: System = System; fn main() { println!("Hello, world!"); } Create a Cargo.toml with: # The release profile, used for `cargo build --release`. [profile.release] opt-level = 'z' # Optimize for size. lto = true # Enable Link Time Optimization panic = 'abort' # Abort on panic Build with the following command: ...
    • なちかアラート repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.