[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] [bug #40594] Store simulation parameters inside the
From: |
Markus Hitter |
Subject: |
Re: [Simulavr-devel] [bug #40594] Store simulation parameters inside the ELF file |
Date: |
Sat, 28 Dec 2013 11:29:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 28.12.2013 06:11, schrieb Onno Kortmann:
> Is there any way to have avr-gcc insert this, or at least
> the parts that are specified on the command line (such as -mcpu=...),
> automatically?
While macros can be put in there, avr-gcc doesn't #define the
"atmega644" term, but __AVR_ATmega644__ instead. So this would require
something like
#ifdef __AVR_ATmega644__
#define MCU "atmega644"
#elif ...
All the Makefiles I've seen so far do the reverse, like setting the
--mcpu parameter according to some earlier definition. Then you can use
this earlier definition directly.
Markus
--
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.reprap-diy.com/
http://www.jump-ing.de/