AR# 22480: 12.1 EDK - Are there target-specific definitions for the MicroBlaze and PowerPC processors?
AR# 22480
|
12.1 EDK - Are there target-specific definitions for the MicroBlaze and PowerPC processors?
描述
Are there target-specific definitions for the MicroBlaze and PowerPC processors in the GNU compiler?
解决方案
There are target-specific #defines built into mb-gcc and powerpc-eabi-gcc compilers. Following is an example piece of code to demonstrate usage for MicroBlaze and PowerPC, respectively: