Recent

Author Topic: Is it possible to support compiling Linux MIPS64EL versions  (Read 1987 times)

kira2024

  • Newbie
  • Posts: 1
Is it possible to support compiling Linux MIPS64EL versions
« on: April 13, 2024, 05:10:44 am »
I'm looking forward to a Linux MIPs64EL version that can be compiled to solve the problems of ordinary developers

PascalDragon

  • Hero Member
  • *****
  • Posts: 5759
  • Compiler Developer
Re: Is it possible to support compiling Linux MIPS64EL versions
« Reply #1 on: April 16, 2024, 08:51:36 pm »
The compiler has experimental MIPS64EL support, you'll probably have to cross compile however as I think the mips-linux distribution we provide as download is not the little endian one.

Assuming you have the correct binutils it should essentially be enough to do the following in a source distribution of FPC:

Code: [Select]
make all OS_TARGET=linux CPU_TARGET=mipsel BINUTILSPREFIX=mipsel-linux-gnu- FPMAKEOPT="-T <cores>" -j <cores>
make install OS_TARGET=linux CPU_TARGET=mipsel INSTALL_PREFIX=/where/you/want/your/compiler

The <cores> is the number of CPU cores you have and the prefix needs to match the one of your binutils.

 

TinyPortal © 2005-2018