Learn about Large System Extensions
Introduction
Introduction to Large System Extensions
Deploy an example C program
Next Steps
Learn about Large System Extensions
Review frequently asked questions
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.
Save the program as
atomic.c. Include stdio.h, threads.h, and stdatomic.h.You’ll create 10 threads, with each thread performing 1,000 increments of both the non-atomic and atomic counters.
Confirm that the atomic counter reports the total increments across all threads. Your non-atomic counter can report a different value because concurrent updates create data races.
Run the
objdump command and check its count of LSE atomic instructions. You can also inspect the disassembly for instructions such as ldaddal.Run
sudo dmesg | grep LSE and look for a message that reports detected LSE atomic instructions. You can also run lscpu | grep Flags. The atomics flag indicates LSE support.