Program Won't Compile

When running my Vexcode IQ C++ program, I get the following error:

windows build for platform vexiq2
“CXX src/main.cpp”
“LINK build/SPAM.elf”
arm-none-eabi-ld: build/SPAM.elf section .text' will not fit in region SRAM_1_2_3’
arm-none-eabi-ld: region `SRAM_1_2_3’ overflowed by 79792 bytes
make: *** [vex/mkrules.mk:18: build/SPAM.elf] Error 1
make process closed with exit code : 2

What does this error mean?

Your program is too large.
Could be a number of things causing that, a big array, using (certain) C++ standard library functions, hard to say exactly.

4 Likes