ApolloCrossDev is intended to help (future) Amiga/Apollo developers to setup a Cross Compiler in a Virtual Ubuntu or Debian Linux.
Content:
- GCC 6.5.0 Toolchain (Apollo optimised Fork from excellent Amiga-GCC by Stefan -Bebbo- Franke)
- VASM Assembler (Apollo optimised Assembler from Dr. Volker Barthelsmann & Frank Wille)
- Amiga OS Native Development Kits (1.3, 3.9 and 3.2)
- Additional Software Development Kits (SDL, FreeType, Open-GL, MUI5)
- GDB-Server running native on Apollo V4 for remote debugging on Linux in Visual Studio Code
- C/C++/ASM Source-Code examples with automated Build from Makefiles and remote Debug enabled
- Apollo Library with some basic Apollo C++ and ASM routines, including Debug on Serial Output (TTY)
Requirements:
- Ubuntu 24.04.3 LTS amd64 (Intel) is the supported Linux (25.10 will fail) installed in a VM (8Gb+ RAM|50Gb+ HD|4+ Cores)
- Git tools installed from CLI (open terminal and type "sudo apt install git")
- Microsoft Visual Studio Code (VS-Code) downloaded and installed (https://code.visualstudio.com)
- Microsoft Visual Studio Code Extensions:
- Microsoft C/C++ (Intellisense, debugging and code browsing)
- Microsoft C/C++ Extension Pack (collection of popular extensions)
- Microsoft Makefile Tools (support for C/C++ Makefiles)
Installation:
- Open VS-Code Click "View" and select "Open Command Palette" (or press CTRL+Shift+P)
- In drop-down list Select "git clone" and type "https://github.com/WDrijver/ApolloCrossDev"
- After download Click "Open" and accept "trust the authors" and Click "Open Workspace" in the right corner popup window
- Select "Terminal" in the menu and then "New Terminal"
- In the terminal windows type "./GCC-6.50.sh" to install the Toolchain
- After the installation is finished type "sudo nano ~/.bashrc"
- At the end of the file add: export AMIGAHOST="IP-ADDRESS" and save (for example: export AMIGAHOST ="192.168.2.100")
- Close the terminal window, close Visual Studio Code
Test Compiler and File-Transfer:
- Click "Terminal" in menu and select "Run Build Task" (or press CTRL-Shift-B)
- Select "ApolloDemo" from the drop-down List
- DoubleClick ApolloDemo Icon on your Apollo V4 (in the target path specified in tasks.json)
Test Remote GDB Debugger:
- Set Breakpoint(s) in source code by clicking left from the line number (red dot appears)
- Select "Run" and select "Start Debugging" (or press F5)
- Select the you want to Remote Debug from the drop-down List
- DoubleClick your Icon on your Apollo V4 (in the target path specified in tasks.json)
- Use Debug Controls (step-over, step-into, etc.) to
- Open
Test Serial Terminal Debugger: (NOTE: Serial Debug requires PL2303 USB to Serial cable + TTY Terminal Program | Settings: 115200-8-1-N)
Create a new Project:
- Right-Click Projects Folder and select "New Folder..." to create a new Folder
- Right-Click Folder and select "New File..." to create .c .cpp and .s source files
- Copy make-gcc650 template from Projects/_makefiles to Folder
- Change the Project/ line and make other customizations to make-gcc650 if needed
- Create your C and/or Assembler code using .c for C, .cpp for C++ and .s for ASM
- Right-Click Folder and select "Open in integrated Terminal"
- Type "make -f make-gcc650" to Compile
TIP: make-gcc contains additional information on Compiler Options please take you time to read this information carefully if your new to GCC/Amiga
For further ApolloCrossDev installation help a video guide is available at: >
Other Resources:
- Apollo 68080 AMMX/SAGA Basic Coding Documentation : http://apollo-core.com/index.htm?page=coding
- Tommo's Apollo Developer Documentation Links :
- ApolloOS - Apollo V4 Open Source OS Distro Image : http://www.apollo-computer.com/downloads.php
Apollo 68080 C/C++ opcode support: C/C++ Compiler current opcode support for Apollo 68080 : cmpiw.l + addiw.l + dbra.l + bcc.s+ C/C++ Compiler future opcode support for Apollo 68080 : moviw.l + mov3q + clr.q + move2.b + movs.b/w + movz.b/w