How to use multiple versions of GCC August 2, 2023 by Tarik Refer “How to install multiple versions of GCC” here in the GNU GCC FAQ. There’s also a white paper here.