Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
How do I confirm the Arm CPU model on the instance before choosing flags?
Run lscpu | grep -i model and look for a Model name line such as Neoverse-*. If lscpu omits the model name, use the tip in the step to read the CPU part number.
Which compiler flag should I use for portability versus CPU-specific tuning?
Use -march= with a value that matches the lowest Arm architecture across your target systems for portability. Use -mcpu= to tune for a specific processor when you plan to run only on that CPU.
Do I have to use an AWS Graviton 4-based instance?
No. Any Neoverse-based system running Ubuntu 24.04 LTS works, including the examples mentioned. The workflow assumes an Arm-native environment on such a system.
What should I do if I’m deploying in a memory-constrained container?
Optimize for size as outlined in the example step. Choose compiler options that reduce binary size and accept the trade-offs they introduce.
What result should I expect after building and running the example?
The program should compile and run on the Arm instance. A portable build using -march is intended to run on other Arm servers that meet that baseline, while a CPU-tuned build targets the specified processor.

Share

Tell others about this Learning Path.

Return to Servers and Cloud Computing