mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-03 12:35:06 -06:00
## Summary
- Add AMD AOCC (AMD Optimizing C/C++ Compiler) configurations for C,
C++, and Fortran
- AOCC is AMD's LLVM/Clang-based compiler optimised for Zen processors
- Versions added: 3.2.0, 4.0.0, 4.1.0, 4.2.0, 5.0.0, 5.1.0, 5.2.0
- Compiler IDs: `aocc{VER}` (C++), `caocc{VER}` (C), `aoccflang{VER}`
(Fortran)
- Companion infra PR:
https://github.com/compiler-explorer/infra/pull/2040
Closes #430
## Licence note
AOCC is free to use but proprietary, distributed under AMD's standard
Software End User License Agreement (the EULA bundled in the tarball).
That licence permits our use; this is not a bespoke grant like the one
Intel provided for ICC. AMD have additionally confirmed by email that
they're happy for us to host it. The `licensePreamble` for all three
languages is `Proprietary. Copyright (c) Advanced Micro Devices, Inc.
All rights reserved.`, with `licenseName=AMD AOCC EULA` and a link to
AMD's AOCC page.
## Details
AOCC is based on LLVM 17.0.6/Clang. The C/C++ compilers expose
`clang`/`clang++` and the Fortran compiler is `flang`. Groups are set
with `compilerType=clang` so intel-asm and other clang-specific features
work correctly.
## Test plan
- [x] `npm run test:props` passes (90 tests)
- [x] Tarballs download, extract and `clang++ --version` runs (verified
during infra install)
- [ ] Verify compilers compile correctly in a live CE deployment
---------
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>