[arm-gnu] Detecting M-profile target from C-preprocessor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Detecting M-profile target from C-preprocessor?



Hello,

I'd like to have some assembly source file pre-processed by cpp, and this asm code needs to be different for M-profile targets.

Is there any #define to help this?

__thumb__ and __thumb__2 are defined when -mthumb is used, but even when defined non-M-profile targets support ARM code, so an asm file can emit ARM code even when __thumb__ or __thumb2__ are defined.

I couldn't find a simple of detecting that ARM code isn't supported by the target.

Any hint?

Thanks.

Christophe.