|
From: Vincent R. <vin...@fr...> - 2019-10-27 15:53:18
|
On 27/10/2019 at 15:50, Eero Tamminen wrote: > I've updated my Debian to current stable, which has (m68k) GCC v8.3. > > Getting EmuTOS sources to compile required following hack patch. > > After that, EmuTOS can be built in Debian (stable) with: > $ sudo apt install gcc-m68k-linux-gnu > $ make TOOLCHAIN_PREFIX=m68k-linux-gnu- ELF=1 512 Oh. I wasn't aware that an m68k cross-compiler was officially shipped with Debian. That's very fine. > However, the resulting binary won't boot. You built it the right way. And it is supposed to work. I check from time to time with m68k-elf-gcc 7.1.0. I checked it for last release. But beware of the ABI. Some GCC m68k targets return pointers in a0, while they are normally returned in d0. This affects the interface between C and S sources. Currently, EmuTOS only supports compilers returning pointers to d0, and this is unlikely to change. I have a vague remembrance that GCC for m68k-linux may return pointers in a0. This has to be checked. For memory, you can get m68k-atari-mint-gcc 4.6.4 for Debian stable there: http://vincent.riviere.free.fr/soft/m68k-atari-mint/debian.php -- Vincent Rivière |