在编译的过程中出现了下面的信息,向各位大虾求教红色字体部分的错误是怎么回事? make -s all Compiling led.c... Linking leds.elf... ../led.c:24: warning: return type of 'main' is not `int' /cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region ram is full (leds.elf section .text). Region needs to be 9092 bytes larger. /cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: address 0x43d0 of leds.elf section .rwdata is not within region ram /cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00001020 -> 00001233] overlaps section .text [00001020 -> 00003783] E:/DOCUMENT/FPGA/EXPERIMENT/BLOCKWY/leds_syslib/Debug/libleds_syslib.a(altera_avalon_uart.o)(.text+0x238): In function `alt_get_errno': /cygdrive/d/ProFiles/NIOS/components/altera_hal/HAL/inc/sys/alt_errno.h:81: Unable to reach errno (at 0x00001024) from the global pointer (at 0x0000c36c) because the offset (-45896) is out of the allowed range, -32678 to 32767.
[此贴子已经被作者于2006-12-7 8:36:23编辑过] |