I'm writing some "portable" C code that will be shared between an AVR and another CPU architecture. Alas, the portable version of what I am trying to accomplish is generating unreasonably long assembly code for an 8-bit micro.
I need to tell by preprocessor macro if the target CPU is an AVR (not some specific part, but AVR in general). This way I can write 8-bit optimized code for that case.
Such a macro must exist - what is its name?