Open armandomontanez opened 3 hours ago
Perhaps there's an argument to be made that we should just jump ship entirely on this expression, and use the names available for -mcpu
. They're more granular, and better express exactly what you're targeting. You can infer the -march
names from -mcpu
but not the other way around.
Similar to #100, I'm looking to tidy up some pre-existing Cortex-M CPU expressions here.
Proposal
Mark
//cpu:armv8-m
as deprecated, and introduce//cpu:armv8-m.base
and//cpu:armv8-m.main
.Why?
ARMv8-M is technically split into two distinctly different ISAs:
armv8-m.main
andarmv8-m.base
. The baseline variant of ARMv8-M is more akin toARMv6-M
thanARMv7E-M
. Also, when spelling-march
, there is no such option forarmv8-m
. The flavors are eitherarmv8-m.base
orarmv8-m.main
. Note that these flavors are not traditionally considered extensions (unlike FPU or DSP instructions).Also, this naming carries forward with the
armv8.1-m.main
architecture, even though it doesn't have aarmv8.1-m.base
variant.