Dockerfile for AmigaOS Cross-Compiler Toolchain
Switch branches/tags
Nothing to show
Clone or download
Latest commit 65d2e5c Nov 8, 2018
Permalink
Failed to load latest commit information.
.gitignore Initial commit Mar 29, 2018
Dockerfile Bump Nov 8, 2018
README.md Initial commit Mar 29, 2018
build.xml Suppress warnings Aug 7, 2018
bump.php Add script for updating the Dockerfile to the current SHA1 Mar 30, 2018
screenshot.png Initial commit Mar 29, 2018

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!