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

niosII 出现存储器不够的情况,问题如下

niosII 出现存储器不够的情况,问题如下

make -s all includes
Compiling hello_world.c...
Linking light.elf...
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_mem is full (light.elf section .text). Region needs to be 12340 bytes larger.
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: address 0x101d0e8 of light.elf section .rwdata is not within region onchip_mem
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [01010020 -> 01010233] overlaps section .text [01010020 -> 0101b033]
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/libc.a(sbrkr.o)(.text+0x14): In function `_sbrk_r':
/build/nios2eds-gnutools-win32-7.2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/sbrkr.c:59: Unable to reach errno (at 0x01010020) from the global pointer (at 0x0102507c) because the offset (-86108) is out of the allowed range, -32678 to 32767.
collect2: ld returned 1 exit status
make: *** [light.elf] Error 1
Build completed in 2.953 seconds



我的问题是我以前曾成功编译过一次,再说我的程序就一句printf语句,没有很大,怎么可能就不够用了呢,我把printf语句去掉后,就可以用了,很奇怪,这一句就占用那么大的地方吗
返回列表