项目作者: sebastianbergmann

项目描述 :
Dockerfile for AmigaOS Cross-Compiler Toolchain
高级语言: PHP
项目地址: git://github.com/sebastianbergmann/docker-amiga-gcc.git
创建时间: 2018-03-29T07:59:32Z
项目社区:https://github.com/sebastianbergmann/docker-amiga-gcc

开源协议:

下载


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:

  1. #include <proto/exec.h>
  2. #include <proto/dos.h>
  3. int main(int argc, void *argv[])
  4. {
  5. struct Library *SysBase;
  6. struct Library *DOSBase;
  7. SysBase = *((struct Library **)4UL);
  8. DOSBase = OpenLibrary("dos.library", 0);
  9. if (DOSBase) {
  10. Write(Output(), "Hello world!\n", 13);
  11. CloseLibrary(DOSBase);
  12. }
  13. return(0);
  14. }

Standard C Library

hello.c from Radosław Kujawa:

  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf("Hello world!\n");
  5. return(0);
  6. }

Compilation

  1. $ podman run -v $HOME:/host -it sebastianbergmann/amiga-gcc \
  2. 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.

  1. $ docker-execute-amiga helloworld

Screenshot

Container-ized Emulation using Virtual AmigaOS (vamos)

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