Introduction
A precompiled binary package for Linux i386 and compatibles targeting AmigaOS 3.x is available from aminet.net
http://aminet.net/package/dev/gcc/m68k-amigaos-gcc
Hardlinks
Running gcc requires at least linux-gate.so.1, libc.so.6 and /lib/ld-linux.so.2
vasm and vlink will only run on 64 bit due to hardlinking of /lib64/ld-linux-x86-64.so.2
Content
- gcc 2.95.3
- g++ 2.95.3
- libstdc++ 2.10
- binutils 2.9.1 (GNU assembler, linker, etc.)
- libnix 2.2 (standard ANSI/C library replacement for AmigaOS)
- libm 5.4 (provides math library implementation for non-FPU Amigas)
- vbcc toolchain including vasm 1.7h, vlink 0.15d and C standard library
- AmigaOS headers & libraries & autodocs (for AmigaOS 3.9)
- IRA: portable M68000/010/020/030/040 reassembler for AmigaOS hunk-format
- vda68k: portable M68k disassembler for 68000-68060, 68851, 68881, 68882
Installation
The binary distribution needs to be installed in /opt/m68k-amigaos.
cd /opt && sudo tar -zxf ~/Downloads/m68k-amigaos-gcc.tar.gz
cd /usr/local/bin && sudo ln -s /opt/m68k-amigaos/bin/* .
To install in another location the toolchain requires recompilation.
Example of usage
Edit and save the text to hello.c:
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
Compile with:
m68k-amigaos-gcc -noixemul hello.c -o Hello