I am hoping to use GCC to compile code for the TMS570LS3137 or TMS570LS43x processor which are big endian Cortex-R4 and Cortex-R5F respectively.
I have found some old instructions here: TMS570LS and GCC compiler - Hercules safety microcontrollers forum - Hercules ︎ safety microcontrollers - TI E2E support forums. I will attempt to follow them today.
Can anyone provide some explanation of how to build GCC including the libraries for big endian? Is there a recent, pre-build set of tools that support these processors?
I'm afraid the binary releases for the RM profile builds of GCC do not contain big-endian multilibs.
So while the compiler may be able to generate code using -mbig-endian it would be able to link this to an executable.
Some headers will also likely be missing.
This has been my experience.
Are there any instructions to build the big-endian multilibs?
Not that I am aware of, if you just require a cross build you have two options:
Use a tool such as https://github.com/crosstool-ng/crosstool-ng which allows you to generate a compiler for a specific target.
You can then just create a big endian target using this. Otherwise you could download the source for the GNU releases and modify the multilibs list to include a big endian multilib.