|
楼主 |
发表于 2007-12-2 02:18:13
|
显示全部楼层
用上面的环境编程效率很高。能实现变量、关键字自动提示,颜色分类,对函数名、变量名自动定位等优点,是PN没法比的。
强烈推荐! ^_^。
下面是一个项目的编译结果:
Deleting intermediate files and output files for project 'Mouse_Code - Win32 Debug'.
--------------------Configuration: Mouse_Code - Win32 Debug--------------------
-------- begin --------
Cleaning project:
rm -f main.hex
rm -f main.eep
rm -f main.cof
rm -f main.elf
rm -f main.map
rm -f main.sym
rm -f main.lss
rm -f main.o
rm -f
rm -f main.s
rm -f main.d
rm -f .dep/*
-------- end --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
avr-gcc -c -g -Os -DFORMAT=ihex -DF_CPU=8000000 -IC:\WinAVR\avr\avrlib -Wa,-ahlms=main.lst -mmcu=atmega8 -I. main.c -o main.o
avr-gcc main.o -Wl,-Map=main.map,--cref -mmcu=atmega8 -o main.elf
avr-objcopy -O ihex -R .eeprom main.elf main.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex main.elf main.eep
Creating Extended Listing: main.lss
avr-objdump -h -S main.elf > main.lss
Creating Symbol Table: main.sym
avr-nm -n main.elf > main.sym
Size after:
main.elf :
section size addr
.text 566 0
.data 2 8388704
.bss 8 8388706
.noinit 0 8388714
.eeprom 0 8454144
.stab 876 0
.stabstr 132 0
.debug_aranges 20 0
.debug_pubnames 160 0
.debug_info 514 0
.debug_abbrev 277 0
.debug_line 628 0
.debug_str 280 0
Total 3463
AVR Memory Usage
----------------
Device: atmega8
Program: 568 bytes (6.9% Full)
(.text + .data + .bootloader)
Data: 10 bytes (1.0% Full)
(.data + .bss + .noinit)
Mouse_Code.hex - 0 error(s), 0 warning(s) |
|