Dockerfile for AmigaOS Cross-Compiler Toolchain
Go to file
Sebastian Bergmann 966ddf7b24 Minimize build context 2019-08-27 13:59:01 +02:00
.github Create FUNDING.yml 2019-05-24 08:32:03 +02:00
.dockerignore Minimize build context 2019-08-27 13:59:01 +02:00
.gitignore Initial commit 2018-03-29 09:57:03 +02:00
Dockerfile Bump 2019-08-23 07:14:45 +02:00
README.md Initial commit 2018-03-29 09:57:03 +02:00
build.xml After 337d0e2b17 it makes more sense for test to not depend on build 2019-08-23 07:14:25 +02:00
bump.php Detect changes in https://github.com/bebbo/gcc repository 2019-08-19 15:48:04 +02:00
gcc-latest-commit Bump 2019-08-24 15:40:24 +02:00
screenshot.png Initial commit 2018-03-29 09:57:03 +02:00

README.md

Dockerfile for AmigaOS Cross-Compiler Toolchain

Dockerfile for Stefan "Bebbo" Franke's amiga-gcc toolchain for Linux/AmigaOS cross-development.

A ready-to-use image built from this Dockerfile is available on Docker Hub.

"Hello world!" Example

AmigaOS C API

hello.c from Radosław Kujawa:

#include <proto/exec.h>
#include <proto/dos.h>

int main(int argc, void *argv[])
{
    struct Library *SysBase;
    struct Library *DOSBase;

    SysBase = *((struct Library **)4UL);
    DOSBase = OpenLibrary("dos.library", 0);

    if (DOSBase) {
        Write(Output(), "Hello world!\n", 13);
        CloseLibrary(DOSBase);
    }

    return(0);
}

Standard C Library

hello.c from Radosław Kujawa:

#include <stdio.h>

int main()
{
    printf("Hello world!\n");

    return(0);
}

Compilation

$ docker run -v $HOME:/host -it sebastianbergmann/amiga-gcc \
  m68k-amigaos-gcc /host/hello.c -o /host/hello -noixemul

Execution

Docker-ized Emulation using FS-UAE

The docker-execute-amiga script used below can be downloaded from here.

$ docker-execute-amiga helloworld

Screenshot

Docker-ized Emulation using Virtual AmigaOS (vamos)

$ docker run -v $HOME:/host sebastianbergmann/amitools:latest \
  vamos -C 68020 /host/hello
Hello world!