plain "Set cpu microarchitecture optimization in GCC"
read -rp "`echo $' > 1) M486SX : Select this for an 486-class CPU without an FPU such as AMD/Cyrix/IBM/Intel SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5S.\n \
> 2) M486 : Select this for an 486-class CPU such as AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 and UMC U5D.\n \
> 3) M586 : Select this for an 586 or 686 series processor such as the AMD K5,the Cyrix 5x86, 6x86 and 6x86MX. This choice does not assume the RDTSC (Read Time Stamp Counter) instruction.\n \
> 4) M586TSC : Select this for a Pentium Classic processor with the RDTSC (Read Time Stamp Counter) instruction for benchmarking.\n \
> 5) M586MMX : Select this for a Pentium with the MMX graphics/multimedia extended instructions.\n \
> 6) M686 : Select this for Intel Pentium Pro chips.\n \
> 7) MPENTIUMII : Select this for Intel chips based on the Pentium-II and pre-Coppermine Celeron core.\n \
> 8) MPENTIUMIII : Select this for Intel chips based on the Pentium-III and Celeron-Coppermine core.\n \
> 9) MPENTIUMM : Select this for Intel Pentium M (not Pentium-4 M) notebook chips.\n \
> 10) MPENTIUM4 : Select this for Intel Pentium 4 chips.\n \
> 11) MK6 : Select this for an AMD K6-family processor.\n \
> 12) MK7 : Select this for an AMD Athlon K7-family processor.\n \
> 13) MK8 : Select this for an AMD Opteron or Athlon64 Hammer-family processor.\n \
> 14) MK8SSE3 : Select this for improved AMD Opteron or Athlon64 Hammer-family processors.\n \
> 15) MK10 : Select this for an AMD 61xx Eight-Core Magny-Cours, Athlon X2 7x50,Phenom X3/X4/II, Athlon II X2/X3/X4, or Turion II-family processor.\n \
> 16) MBARCELONA : Select this for AMD Family 10h Barcelona processors.\n \
> 17) MBOBCAT : Select this for AMD Family 14h Bobcat processors.\n \
> 18) MJAGUAR : Select this for AMD Family 16h Jaguar processors.\n \
> 19) MBULLDOZER : Select this for AMD Family 15h Bulldozer processors.\n \
> 20) MPILEDRIVER : Select this for AMD Family 15h Piledriver processors.\n \
> 21) MSTEAMROLLER : Select this for AMD Family 15h Steamroller processors.\n \
> 22) MEXCAVATOR : Select this for AMD Family 15h Excavator processors.\n \
> 23) MZEN : Select this for AMD Family 17h Zen processors.\n \
> 24) MZEN2 : Select this for AMD Family 17h Zen 2 processors.\n \
> 25) MZEN3 : Select this for AMD Family 19h Zen 3 processors. - GCC 10.3 required\n \
> 26) MZEN4 : Select this for AMD Family 19h Zen 4 processors. - GCC 13.1 required\n \
> 27) MCRUSOE : Select this for a Transmeta Crusoe processor.\n \
> 28) MEFFICEON : Select this for a Transmeta Efficeon processor.\n \
> 29) MWINCHIPC6 : Select this for an IDT Winchip C6 chip.\n \
> 30) MWINCHIP3D : Select this for an IDT Winchip-2, 2A or 3.\n \
> 31) MELAN : Select this for an AMD Elan processor.\n \
> 32) MGEODEGX1 : Select this for a Geode GX1 (Cyrix MediaGX) chip.\n \
> 33) MGEODE_LX Select this for AMD Geode GX and LX processors.\n \
> 34) MCYRIXIII : Select this for a Cyrix III or C3 chip.\n \
> 35) MVIAC3_2 : Select this for a VIA C3 "Nehemiah".\n \
> 36) MVIAC7 : Select this for a VIA C7.\n \
> 37) MPSC : Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey Xeon CPUs with Intel 64bit which is compatible with x86-64.\n \
> 38) MATOM : Select this for the Intel Atom platform.\n \
> 39) MCORE2 : Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and 53xx) CPUs.\n \
> 40) MNEHALEM : Select this for 1st Gen Core processors in the Nehalem family.\n \
> 41) MWESTMERE : Select this for the Intel Westmere formerly Nehalem-C family.\n \
> 42) MSILVERMONT Select this for the Intel Silvermont platform.\n \
> 43) MGOLDMONT : Select this for the Intel Goldmont platform including Apollo Lake and Denverton.\n \
> 44) MGOLDMONTPLUS : Select this for the Intel Goldmont Plus platform including Gemini Lake.\n \
> 45) MSANDYBRIDGE : Select this for 2nd Gen Core processors in the Sandy Bridge family.\n \
> 46) MIVYBRIDGE : Select this for 3rd Gen Core processors in the Ivy Bridge family.\n \
> 47) MHASWELL : Select this for 4th Gen Core processors in the Haswell family.\n \
> 48) MBROADWELL : Select this for 5th Gen Core processors in the Broadwell family.\n \
> 49) MSKYLAKE : Select this for 6th Gen Core processors in the Skylake family.\n \
> 50) MSKYLAKEX : Select this for 6th Gen Core processors in the Skylake X family.\n \
> 51) MCANNONLAKE : Select this for 8th Gen Core processors.\n \
> 52) MICELAKE : Select this for 10th Gen Core processors in the Ice Lake family.\n \
> 53) MCASCADELAKE : Select this for Xeon processors in the Cascade Lake family.\n \
> 54) MCOOPERLAKE : Select this for Xeon processors in the Cooper Lake family. - GCC 10.1 required\n \
> 55) MTIGERLAKE : Select this for third-generation 10 nm process processors in the Tiger Lake family. - GCC 10.1 required\n \
> 56) MSAPPHIRERAPIDS : Select this for third-generation 10 nm process processors in the Sapphire Rapids family. - GCC 11 required\n \
> 57) MALDERLAKE : Select this for twelfth-generation processors in the Alder Lake family.- GCC 11 required\n \
> 58) MRAPTORLAKE : Select this for thirteenth-generation processors in the Raptor Lake family.- GCC 13 required\n \
> 59) MMETORLAKE : Select this for fourteenth-generation processors in the Meteor Lake family.- GCC 13 required\n \
> 60) GENERIC_CPU : Generic x86-64 CPU. Run equally well on all x86-64 CPUs.\n \
> 61) GENERIC_CPU2 : Run equally well on all x86-64 CPUs with min support of x86-64-v2. - GCC 11 required\n \
> 62) GENERIC_CPU3 : Generic x86-64-v3 CPU with v3 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v3. - GCC 11 required\n \
> 63) GENERIC_CPU4 : Generic x86-64 CPU with v4 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v4. - GCC 11 required\n \
> 64) MNATIVE_INTEL : Intel-Native optimizations autodetected by GCC.\n \
> 65) MNATIVE_AMD : AMD-Native optimizations autodetected by GCC.\n \