cforth icon indicating copy to clipboard operation
cforth copied to clipboard

In case of build with floating point math, the mathlib is not listed in the linker (STM32F103)

Open ivand58 opened this issue 7 years ago • 2 comments

Observed in STM32F103 target build: When the CForth is build with floating point support, the -lm is missing in the linker flags.

ivand58 avatar Sep 15 '17 06:09 ivand58

Do you have a patch?

MitchBradley avatar Sep 15 '17 06:09 MitchBradley

I am still working on it... Currently I am blocking by the RAM size:

region `RAM' overflowed by 2340 bytes

It is linked with:

arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -o app.elf -T../../src/platform/arm-stm32f103/stm32_flash.ld tstartup_stm32f10x.o tstm32f10x_usart.o tstm32f10x_rcc.o tstm32f10x_gpio.o tstm32f10x_adc.o tmisc.o tsystick.o ttmain.o mallocembed.o tconsoleio.o tsystem_stm32f10x.o tgpio.o tadc.o tembed.o ttextend.o -lc -lgcc -lm -specs=nosys.specs

ivand58 avatar Sep 15 '17 11:09 ivand58