Dockerfile for AmigaOS Cross-Compiler Toolchain
Go to file
Sebastian Bergmann c33ba6ce54
Add link
2020-11-22 17:39:26 +01:00
.github Update FUNDING.yml 2019-10-23 11:04:20 +02:00
bin Bump 2020-11-21 08:16:22 +01:00
test Simplify 2019-08-30 12:12:21 +02:00
.dockerignore Minimize build context 2019-08-27 13:59:01 +02:00
.gitignore Ignore .lock file 2020-05-04 11:53:36 +02:00
Dockerfile As of Git 2.27, "git pull" issues a warning message unless the pull.rebase configuration variable is explicitly set. We set it to false to retain the default behavior and squelch the warning. 2020-09-15 08:25:02 +02:00
README.md Add link 2020-11-22 17:39:26 +01:00
build.xml Make test directory configurable (and use /tmp/docker-amiga-gcc-test by default) 2019-11-08 06:53:22 +01: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.

More information can be found here.

"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!