Remember me

Lost Password?

Register now!
Who's Online
74 user(s) are online (58 user(s) are browsing Forums)

Members: 3
Guests: 71

Ami603, TiredOfLife, kas1e, more...
Support us!
Recent OS4 Files
Report message:*

Re: LTO in AmigaOS4 gcc

Subject: Re: LTO in AmigaOS4 gcc
by Raziel on 2019/3/13 8:09:40


I tried that and it builds, but fist i get an error on linking


12.RAM Disk:> gcc -flto -O3 main_with_lto.o my_malloc_with_lto.o -o test_with_lto
Development:Coding/SDK/gcc/ppc-amigaos/bin/ld: -f may not be used without -shared

adding -shared to the line makes it build, but my binaries WITH -flto in place are still bigger in size than without (6250 bytes with lto, compared to 6213 without lto).
Even removing -shared from the non-lto build makes it only 3 bytes smaller, so i'm not sure what's going (still suspecting that -flto isn't picked up and used et al).
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project