source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/tools/avr/lib/gcc/avr/4.9.2/device-specs/specs-attiny5 @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 2 years ago

Adding new version

File size: 2.2 KB
Line 
1#
2# Auto-generated specs for AVR device attiny5 (core avrtiny, 16-bit SP)
3#
4# Generated by   : ./gcc/config/avr/gen-avr-mmcu-specs.c
5# Generated from : ./gcc/config/gcc.c
6#                  ./gcc/config/avr/specs.h
7#                  ./gcc/config/avr/avrlibc.h
8# Used by        : avr-gcc compiler driver
9# Used for       : building command options for sub-processes
10#
11# See <https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html>
12# for a documentation of spec files.
13
14
15# If you intend to use an existing device specs file as a starting point
16# for a new device spec file, make sure you are copying from a specs
17# file for a device from the same core architecture and SP width.
18# See <https://gcc.gnu.org/gcc-5/changes.html> for a description
19# of how to use such own spec files.
20
21*avrlibc_startfile:
22        crtattiny5.o%s
23
24*avrlibc_devicelib:
25        %{!nodevicelib:-lattiny5}
26
27*cc1_n_flash:
28        %{!mn-flash=*:-mn-flash=1}
29
30*cc1_rmw:
31        %{mrmw}
32
33*cc1_errata_skip:
34        %{!mskip-bug: -mno-skip-bug}
35
36*asm_arch:
37        -mmcu=avrtiny
38
39*asm_relax:
40        %{mrelax:--mlink-relax}
41
42*asm_rmw:
43        %{mrmw}
44
45*asm_errata_skip:
46        %{!mskip-bug: -mno-skip-bug}
47
48*link_pmem_wrap:
49
50
51*link_relax:
52        %{mrelax:--relax %(link_pmem_wrap)}
53
54*link_arch:
55        %{mmcu=*:-m%*}
56
57*link_data_start:
58
59
60*link_text_start:
61
62
63*self_spec:
64        %{!mmcu=avr*: %<mmcu=* -mmcu=avrtiny} %<msp8
65
66# AVR-LibC's avr/io.h uses the device specifying macro to determine
67# the name of the device header.  For example, -mmcu=atmega8a triggers
68# the definition of __AVR_ATmega8A__ and avr/io.h includes the device
69# header 'iom8a.h' by means of:
70#
71#     ...
72#     #elif defined (__AVR_ATmega8A__)
73#     #  include <avr/iom8a.h>
74#     #elif ...
75#
76# If no device macro is defined, AVR-LibC uses __AVR_DEV_LIB_NAME__
77# as fallback to determine the name of the device header as
78#
79#     "avr/io" + __AVR_DEV_LIB_NAME__ + ".h"
80#
81# If you provide your own specs file for a device not yet known to
82# AVR-LibC, you can now define the hook macro __AVR_DEV_LIB_NAME__
83# as needed so that
84#
85#     #include <avr/io.h>
86#
87# will include the desired device header.  For ATmega8A the supplement
88# to *cpp would read
89#
90#     -D__AVR_DEV_LIB_NAME__=m8a
91
92
93*cpp:
94        -D__AVR_ATtiny5__ -D__AVR_DEVICE_NAME__=attiny5
95
96# End of file
Note: See TracBrowser for help on using the repository browser.