I would like to cross compile Rust code on my amd64 host system to run on an AWS Graviton2 instance.
Based on Getting started with C/C++ on Graviton guide, it seems like I want something like armv8
. The only such triples in the list of Rust's supported target triples start with thumbv8m
. I don't know anything about ARM, so not sure if these are what I want, and if so, which one.
Amazon Web Services (AWS) offers Elastic Compute Cloud (EC2) Graviton2 processor-based instances utilizing 64-bit Arm Neoverse cores. AWS Graviton2 processors deliver a significant leap in performance and capabilities over the first-generation AWS Graviton processor (A1 series) instances.
AWS has committed to supporting the Rust community and using the language to deliver fast and robust services to customers at scale, and we want to enable our customers to do the same. We also include instructions for building and installing the rust-analyzer and CodeLLDB debugger plugins to add additional language features.
Amazon has released Graviton2 instances across General Purpose, Compute Optimized, and Memory Optimized families in M6g, C6g, and R6g types. For applications that require local storage, NVMe SSD local instance storage variants like C6gd, M6gd, and R6gd are available.
The solution consists of an EC2 Graviton2 instance located in a private VPC subnet routed through an AWS Global Accelerator accelerator to provide routing optimization and keep packet loss, jitter, and latency lower by up to 60%.
The correct target will be aarch64-unknown-linux-gnu
. You could also perform Arm-native compilation on the AWS Graviton2 instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With