However when I add -flto to that separate compile into __aeabi_d2f.o it does not help and does not work.
without -flto
-flto
$ arm-none-eabi-gcc -c -fno-common -fno-exceptions -fdata-sections -ffunction-sections -fpermissive -Os -fpic -fpie -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant -Wdouble-promotion -Wfloat-conversion -fno-fat-lto-objects __aeabi_d2f.cpp -o __aeabi_d2f.o $ arm-none-eabi-objdump -d __aeabi_d2f.o __aeabi_d2f.o: file format elf32-littlearm Disassembly of section .text.__aeabi_d2f: 00000000 <__aeabi_d2f>: 0: e3a005fe mov r0, #1065353216 ; 0x3f800000 4: e12fff1e bx lr
However with -flto the object file is in fact empty (with tons of other LTO stuff still in it :-)
$ arm-none-eabi-gcc -c -fno-common -fno-exceptions -fdata-sections -ffunction-sections -fpermissive -Os -fpic -fpie -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant -Wdouble-promotion -Wfloat-conversion -flto -fno-fat-lt o-objects __aeabi_d2f.cpp -o __aeabi_d2f.o $ arm-none-eabi-objdump -d __aeabi_d2f.o __aeabi_d2f.o: file format elf32-littlearm
@fanoush started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
without
-flto
However with
-flto
the object file is in fact empty (with tons of other LTO stuff still in it :-)