[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?
- To: "arm-gnu@xxxxxxxxxxxxxxxx" <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: [arm-gnu] Detecting M-profile target from C-preprocessor?
- From: Christophe LYON <christophe.lyon@xxxxxx>
- Date: Wed, 10 Mar 2010 16:00:18 +0100
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.