Senthil Kumar Selvaraj schrieb:
The below patch adds a new preprocessor define for the device name
(__AVR_DEVICE_NAME__) that was passed to the compiler.
While the device name macro (say __AVR_ATmega128__) can be used to
check for a specific device, there is no way right now for code
to get the device name it is being compiled against (without checking
for every possible device).
Shouldn't this also be added to the documentation?
There's a section "AVR Built-in Macros" in the manual.
Johann
This patch is groundwork for embedding device information in a note
section (see binutils ml discussion
https://www.sourceware.org/ml/binutils/2014-07/msg00146.html), so that
utilities that operate on the ELF file do not have to hardcode
device information themselves.
If ok, could someone apply please? I don't have commit access.
Regards
Senthil