Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
48 user(s) are online (37 user(s) are browsing Forums)

Members: 0
Guests: 48

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: LTO in AmigaOS4 gcc

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

@kas1e

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

Quote:

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