The compiler defines the macros, discussed in the following table, to describe powerpc processor core that the compiler is generating code for.
| Processor Core | Compiler Macro |
|---|---|
| 401 | __PPC401__ |
| 403 | __PPC403__ |
| 405 | __PPC405__ |
| 505 | __PPC505__ |
| 509 | __PPC509__ |
| 555 | __PPC555__ |
| 56x | __PPC56x__ |
| 601 | __PPC601__ |
| 602 | __PPC602__ |
| 603 | __PPC603__ |
| 603e | __PPC603e__ |
| 604 | __PPC604__ |
| 604e | __PPC604e__ |
| 7400 | __PPC7400__ |
| 740/74x | __PPC740__ |
| 7450/745x | __PPC7450__ |
| 74xx | __PPC74xx__ |
| 750/75x | __PPC750__ |
| 801 | __PPC801__ |
| 821 | __PPC821__ |
| 823 | __PPC823__ |
| 8240 | __PPC8240__ |
| 82xx | __PPC82xx__ |
| 824x | __PPC8240__ |
| 8260 | __PPC8260__ |
| 827x | __PPC827x__ |
| 850/85x | __PPC850__ |
| 860/86x | __PPC860__ |
| 87x | __PPC87x__ |
| 88x | __PPC88x__ |
| 8280 | __PPC8280__ |
| 5100 | __PPC5100__ |
| 5200 | __PPC5200__ |
| e300[c1] | __PPCe300__ |
| e300c2 | __PPCe300c2__ |
| e300c3 | __PPCe300c3__ |
| e300c4 | __PPCe300c4__ |
| e500[v1] | __PPCe500__ |
| e500v2 | __PPCe500v2__ |
| e600 | __PPCe600__ |
| e700 | __PPCe700__ |
| Zen | __PPCZen__ |
| generic | __PPCGENERIC__ |