Dockerfile for AmigaOS Cross-Compiler Toolchain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Sebastian Bergmann f99b3ca77d
Bump
3 months ago
.github Update FUNDING.yml 3 years ago
bin Bump 3 months ago
test Simplify 4 years ago
.dockerignore Minimize build context 4 years ago
.gitignore Ignore .lock file 3 years ago
Containerfile Use Ubuntu 22.10 5 months ago
README.md * Rename Dockerfile to Containerfile 1 year ago
build.xml Use buildah 9 months ago
screenshot.png

README.md

Containerfile for AmigaOS Cross-Compiler Toolchain

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

A ready-to-use image built from this Containerfile 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

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

Execution

Container-ized Emulation using FS-UAE

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

$ docker-execute-amiga helloworld

Screenshot

Container-ized Emulation using Virtual AmigaOS (vamos)

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