Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
170 user(s) are online (153 user(s) are browsing Forums)

Members: 0
Guests: 170

more...

Support us!

Headlines

 
  Register To Post  

Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
Hello I'd like to recompile some projects for Tabor next coming.
As described on various web sites about generating code for PowerPC SPE, I'm targeting 8540 PowerPC cpu with GCC 8.3 and present latest ADTOOLS available for OS4.
Sadly I got errors from GCC using these compiling parameters: -mcpu=8640 -mtune=8540 -mspe -mabi=spe -mfloat-gprs=double

I'm compiling natively under OS4 so what's wrong? Does someone else is starting to compile for Tabor? How you did?

Go to top
Re: Compiling for TABOR - GCC 8
Home away from home
Home away from home


See User information
@flash

Support for PowerPC SPE was removed in GCC 8. From the GCC release notes:

"Support for the powerpc*-*-*spe* target ports which have been recently unmaintained and untested in GCC has been declared obsolete in GCC 8 as announced here. Unless there is activity to revive them, the next release of GCC will have their sources permanently removed."

What I do, is use an older version of GCC to compile SPE code, and then link everything with GCC 8. That way I can compile SPE optimized code, and still use GCC 8 for everything else.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
@Hans

Ok tnx!
Where can I find gcc7 or gcc6 builds for amigaos4?
Can I mix it with gcc 8.3 and latest adtools?

Go to top
Re: Compiling for TABOR - GCC 8
Quite a regular
Quite a regular


See User information
Be careful with mixing C++ object files compiled with different GCC versions, as the ABI can change quite a bit between them. With C you should be fine.

This is just like television, only you can see much further.
Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
@flash

You can compile gcc 6.4.0 from adtools:

https://github.com/sba1/adtools

Just replace "bin/gild checkout gcc 8" with "bin/gild checkout gcc 6" if you are following the instructions there.

Go to top
Re: Compiling for TABOR - GCC 8
Home away from home
Home away from home


See User information
@BSzili
Quote:
Be careful with mixing C++ object files compiled with different GCC versions, as the ABI can change quite a bit between them. With C you should be fine.

True, that is a risk with C++.

Added to that, when mixing versions always use the newer GCC for linking. For example, if you use both GCC 7 & 8, always use GCC 8's linker.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
@salass00

Thanks a lot.
Is there any place to download a compiled binary for os4?

Go to top
Re: Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
@Hans

Do you know any news about readd spe support in next gcc versions?

Go to top
Re: Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
Quote:
Is there any place to download a compiled binary for os4?


I second this. Can someone build an ADTools Package with latest GCC 6 and/or GCC 7?

AMIGA 1200 | Vampire 1200 II | 128 MB RAM | Indivision AGA Mk3 | 256 GB SD | AmigaOS 3.2.2
AMIGA 600 | Vampire 600 II | 128 MB RAM | Indivision ECS Mk3 | 256 GB SD | AmigaOS 3.2.2
Go to top
Re: Compiling for TABOR - GCC 8
Just popping in
Just popping in


See User information
@All

Still looking for a gcc 6/7 binaries to download.
I'd like to build for Tabor too.

If possible I'd like to mix them with existing recent adtools downloaded from os4depot.

Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
@flash

One of the archives listed here might work:

https://dl.bintray.com/sba1/adtools-native/

Unfortunately the compiled gcc version is not mentioned in the archive names.

I did try building a native gcc 6.4.0 compiler from adtools but it failed during compiling of coreutils IIRC.

Go to top
Re: Compiling for TABOR - GCC 8
Home away from home
Home away from home


See User information
@flash

I've been using GCC-5.5.0, which was on os4depot.net, but seems to have been overwritten recently. I think that version should be uploaded again with a different filename, as it's the last release to support SPE.

I'm not sure if any stable release of GCC 6 or 7 were ever made.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
@flash

If you download https://dl.bintray.com/sba1/adtools-na ... ools-os4-20170218-372.lha (first entry from site) it's version 5.4.0 so maybe it has SPE support.

..

#adtools-os4-20170218-372/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/RAM Disk/adtools-os4-20170218-372/bin/gcc
COLLECT_LTO_WRAPPER=/RAM\ Disk/adtools-os4-20170218-372/bin/../libexec/gcc/ppc-amigaos/5.4.0/lto-wrapper
Target: ppc-amigaos
Configured with: /home/travis/build/sba1/adtools/gcc/repo/configure --with-bugurl=http://sf.net/p/adtools --with-pkgversion='adtools build 5.4.0' --host=ppc-amigaos --target=ppc-amigaos --disable-nls --prefix=/gcc --enable-languages=c,c++ --enable-haifa --enable-sjlj-exceptions --disable-libstdcxx-pch --with-gmp=/home/travis/build/sba1/adtools/native-build/root-cross --with-mpfr=/home/travis/build/sba1/adtools/native-build/root-cross --with-mpc=/home/travis/build/sba1/adtools/native-build/root-cross --disable-tls
Thread model: single
gcc version 5.4.0 (adtools build 5.4.0)
#

Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
Is it really necessary to specifically target the Tabor processor for an OS4.x program to work on Tabor? If not, why bother. None of the OS4 programs I've worked on specifically target any one PPC processor.

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
@xenic

No, but any floating point heavy code will work much better when compiled for the SPE directly rather than relying on the load time emulator (LTE), or worse the exception based FPU emulation.

As the SPE ABI is not compatible with the standard SysV ABI, which passes floating point values in floating point registers (that the SPE doesn't have), it is generally recommended to separate such functions and compile only those for SPE directly.

If the code itself doesn't use floating point types but GCC is generating FPU instructions anyway (for memory copying and such) then compiling the code in question with -msoft-float might be enough (the soft-float and SPE ABIs are OTOH compatible AFAICT).

Go to top
Re: Compiling for TABOR - GCC 8
Just can't stay away
Just can't stay away


See User information
@salass00
Does that mean some of the current OS4 programs on OS4Depot will not work or become noticably slower on a Tabor?

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: Compiling for TABOR - GCC 8
Not too shy to talk
Not too shy to talk


See User information
@xenic Existing programs that use floating points will be slower, from not visible to really slower, as they will require some emulation work by the OS.

With GCC 8, the support of SPE has been declared deprecated but is it possible to enable it?

Anyway, the use of SPE instructions should be restricted to the most essential and reduced part (and with much care).

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project