|
Re: LTO in AmigaOS4 gcc |
Posted on: 2/20 19:48
#21 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@All
So, recompiled some stuff with LTO and compare with the same bulids but with no LTO. Quake3 (plain C): give +1.5fps everywhere with lto. Foobillard++:(plain C) as i say before give +8fps (about 12-13% speed increase) FrickingShark (c++/c): no changes Barony (c++/c): no changes Prototype (c++/c): no changes Dunno if it can be something about c++ code only , or just it some luck that those 3 which have no differences when compiled with lto are c++ ones, while those which have differences are plain c ones. |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 2/27 7:49
#22 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
Now that it has been successfullya tested, could you try to add it to the adtools daily builds (or bleeding edge or whatever), so people can pick it up from there? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 2/27 11:36
#23 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Raziel
Its a matter of Sebastian's wish, its only about adding --enable-lto to one place. I can write in your ticket that it tested and works, but don't hold your hope he will add it, as it will mean some extra support later if anything will going wrong. |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 2/27 15:08
#24 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
Just seen it, thank you |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/1 18:49
#25 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Raziel
Sba added that switch, so probably next autobuilds will contain it |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/2 10:18
#26 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@all
Native amigaos4 version with enabled lto as well as it also gcc 8.3.0 now can be taken as usual from https://dl.bintray.com/sba1/adtools-native/ There is direct link: https://dl.bintray.com/sba1/adtools-na ... ls-os4-8-20190301-697.lha |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/4 8:36
#27 |
---|---|---|
Just popping in
![]() ![]() Joined:
2018/3/1 21:08 From italy
Posts: 6
|
I want advice the clib2 links are broken and you have to fix it manually. There’s a semicolon to be removed in the file path..
Also gcc version are you sure it’s the 8.3.0? I read 8.1.0 in cc1 binary. |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/5 5:55
#28 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@flash
As Sba say that ":" thing in the urls probably come from bintray.com itself As for gcc 8.1.0 instead of 8.3.0 there was issue he fix today, check new build, should be ok: https://dl.bintray.com/sba1/adtools-na ... ls-os4-8-20190304-698.lha |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/11 9:07
#29 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
I have installed the -699 daily build now, but it still doesn't seem to get picked up, it still refuses to find a gcc, c++ compiler. This is with the apps configure script |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/12 21:22
#30 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
Do you maybe have some short code to test the lto flag? Just to make sure it's picked up correctly? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/13 5:40
#31 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Raziel
You can do what i do in post #15 for brief check |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/13 8:09
#32 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
I tried that and it builds, but fist i get an error on linking Quote:
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). |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/13 10:37
#33 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Raziel
Maybe something with your adtools installation ? I for sure didn't use -shared and it works. Maybe still old gcc is used ? Check via gcc -v if it says that it 8.3.0 and lto enabled |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/13 14:00
#34 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
15.System:> gcc -v Using built-in specs. COLLECT_GCC=/Development/Coding/SDK/gcc/bin/gcc COLLECT_LTO_WRAPPER=/Development/Coding/SDK/gcc/bin/../libexec/gcc/ppc-amigaos/8.3.0/lto-wrapper Target: ppc-amigaos Configured with: /var/lib/jenkins/workspace/native-gcc-8/gcc/repo/configure --with-bugurl=https://github.com/sba1/adtools/issues --with-pkgversion='adtools build 8.3.0' --host=ppc-amigaos --target=ppc-amigaos --disable-nls --prefix=/gcc --with-gmp=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --with-mpfr=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --with-mpc=/var/lib/jenkins/workspace/native-gcc-8/native-build/root-cross --enable-languages=c,c++ --enable-haifa --enable-sjlj-exceptions --disable-libstdcxx-pch --disable-tls --enable-threads=amigaos --enable-lto Thread model: amigaos gcc version 8.3.0 (adtools build 8.3.0) |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||
|
Re: LTO in AmigaOS4 gcc |
Posted on: 3/13 18:05
#35 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@Raziel
Dunno then, i for sure didn't use any -shared thing on my cygwin build, and lto for sure works for me. |
|
|
Re: LTO in AmigaOS4 gcc |
Posted on: 5/17 11:47
#36 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a story that hasn't been written yet
Posts: 3547
|
@kas1e
Maybe because you use it to cross compile while i do native builds? Maybe you use a slightly different toolchain than me? @all Can someone shed some light please. I have broswed the GNU linker manual and stumbled over this: Quote:
Since i'm trying to avoid shared/dynamic builds, what does that mean regarding the usage of -flto? |
|
_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney - Did everything just taste purple for a second? ~ Philip J. Fry - Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. |
||