Makefile Fortschritt

This commit is contained in:
Tristan Krause 2019-03-22 15:51:52 +01:00
parent c8aa49d762
commit 12d7441f1f
10 changed files with 79 additions and 25 deletions

Binary file not shown.

View file

@ -13,17 +13,17 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, READONLY
4 .debug_aranges 00000020 00000000 00000000 00000194 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_info 000007dc 00000000 00000000 000001b4 2**0
5 .debug_info 00000833 00000000 00000000 000001b4 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_abbrev 00000762 00000000 00000000 00000990 2**0
6 .debug_abbrev 0000079a 00000000 00000000 000009e7 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_line 00000055 00000000 00000000 000010f2 2**0
7 .debug_line 00000061 00000000 00000000 00001181 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_frame 00000024 00000000 00000000 00001148 2**2
8 .debug_frame 00000024 00000000 00000000 000011e4 2**2
CONTENTS, READONLY, DEBUGGING
9 .debug_str 0000037a 00000000 00000000 0000116c 2**0
9 .debug_str 000003b8 00000000 00000000 00001208 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_ranges 00000010 00000000 00000000 000014e6 2**0
10 .debug_ranges 00000010 00000000 00000000 000015c0 2**0
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
@ -80,8 +80,9 @@ Disassembly of section .text:
000000a4 <main>:
int main() {
SPI spi_master;
return 0;
}
a4: 80 e0 ldi r24, 0x00 ; 0

View file

@ -23,6 +23,7 @@ LOAD main.o
LOAD spi.o
LOAD c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a
LOAD c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a
LOAD c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a
START GROUP
LOAD c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a
LOAD c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a
@ -371,31 +372,32 @@ END GROUP
.debug_pubnames
*(.debug_pubnames)
.debug_info 0x00000000 0x7dc
.debug_info 0x00000000 0x833
*(.debug_info .gnu.linkonce.wi.*)
.debug_info 0x00000000 0x792 c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51/crtatmega1284.o
.debug_info 0x00000792 0x4a main.o
.debug_info 0x00000792 0xa1 main.o
.debug_abbrev 0x00000000 0x762
.debug_abbrev 0x00000000 0x79a
*(.debug_abbrev)
.debug_abbrev 0x00000000 0x729 c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51/crtatmega1284.o
.debug_abbrev 0x00000729 0x39 main.o
.debug_abbrev 0x00000729 0x71 main.o
.debug_line 0x00000000 0x55
.debug_line 0x00000000 0x61
*(.debug_line .debug_line.* .debug_line_end)
.debug_line 0x00000000 0x1a c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51/crtatmega1284.o
.debug_line 0x0000001a 0x3b main.o
.debug_line 0x00000055 0x0 spi.o
.debug_line 0x0000001a 0x47 main.o
.debug_line 0x00000061 0x0 spi.o
.debug_frame 0x00000000 0x24
*(.debug_frame)
.debug_frame 0x00000000 0x24 main.o
.debug_str 0x00000000 0x37a
.debug_str 0x00000000 0x3b8
*(.debug_str)
.debug_str 0x00000000 0x296 c:/avr8-gnu-toolchain-win32_x86/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51/crtatmega1284.o
.debug_str 0x00000296 0xd9 main.o
.debug_str 0x0000036f 0xb spi.o
.debug_str 0x00000296 0x117 main.o
0x14b (size before relaxing)
.debug_str 0x000003ad 0xb spi.o
0xd5 (size before relaxing)
.debug_loc

View file

@ -15,7 +15,7 @@ COMMON = -mmcu=$(MCU)
## Compile options common for all C compilation units.
CFLAGS = $(COMMON)
CFLAGS += -Wall -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
CFLAGS += -Wall -gdwarf-2 -DF_CPU=20000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
## Assembly specific flags
@ -36,6 +36,15 @@ HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings
## Include Directories
INCLUDES = -I"C:\avr8-gnu-toolchain-win32_x86\avr\include"
## Library Directories
LIBDIRS = -L"C:\avr8-gnu-toolchain-win32_x86\avr\lib"
## Libraries
LIBS = -lc
## Objects that must be built in order to link
OBJECTS = main.o spi.o