首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

[求助]编译时提示onchip memory is full

[求助]编译时提示onchip memory is full

提示如下:

make -s all
Compiling hello_world.c...
../hello_world.c:20: warning: return type defaults to `int'
Linking hello_world_0.elf...
/cygdrive/d/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_memory_0 is full (hello_world_0.elf section .text). Region needs to be 35412 bytes larger.
/cygdrive/d/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: address 0x10a8bc of hello_world_0.elf section .rwdata is not within region onchip_memory_0
/cygdrive/d/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00100020 -> 00100023] overlaps section .text [00100020 -> 00109a53]
/cygdrive/d/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/mno-hw-mul/libc.a(sbrkr.o)(.text+0x14): In function `_sbrk_r':
/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/sbrkr.c:59: Unable to reach errno (at 0x00100020) from the global pointer (at 0x00112874) because the offset (-75860) is out of the allowed range, -32678 to 32767.

collect2: ld returned 1 exit status
make: *** [hello_world_0.elf] Error 1
Build completed

这是什么原因啊?如何解决呢?谢谢!

返回列表