https://www.reddit.com/r/amiga/comments/1j0h1qy/i_need_sdk_for_amigaos_3/
created by Trader-One on 28/02/2025 at 20:11 UTC
9 upvotes, 12 top-level comments (showing 12)
I need to compile few C programs to confirm that my understanding of Operation system API and hardware is right. It is perfectly fine to do this in 68k Amiga emulator.
I found this one: https://www.hyperion-entertainment.com/index.php/downloads?view=files&parent=30[1][2]
1: https://www.hyperion-entertainment.com/index.php/downloads?view=files&parent=30
2: https://www.hyperion-entertainment.com/index.php/downloads?view=files&parent=30
Does that SDK works on 68k based amigas or do I need something else?
Comment by Kellerkind_Fritz at 28/02/2025 at 22:00 UTC
7 upvotes, 1 direct replies
The best way to really get going with C for Amiga is a cross-development approach.
This repository has setup scripts for everything: https://github.com/bebbo/amiga-gcc[1][2]
1: https://github.com/bebbo/amiga-gcc
2: https://github.com/bebbo/amiga-gcc
It'll build GCC, the required runtime libraries and all the SDK includes etc you want.
Native development on AmigaOS is also possible but eh a lot less pleasant.
If you want to follow on that path the best method is VBCC: http://sun.hasenbraten.de/vbcc/index.php?view=main[3][4]
3: http://sun.hasenbraten.de/vbcc/index.php?view=main
4: http://sun.hasenbraten.de/vbcc/index.php?view=main
The installation instructions from vbcc include guidance where to get the SDK and how to install it correctly.
Comment by Ami603 at 28/02/2025 at 22:11 UTC
5 upvotes, 0 direct replies
This is for the most up to date version: 3.2 NDK
Comment by sneekeruk at 28/02/2025 at 20:20 UTC
3 upvotes, 1 direct replies
Thats for os4.x on ppc machines.
You can get the os3.9 Ndk from :: Amiga OS :: multimedia, multi-threaded, multi-tasking ::
I dont think theres been anything newer, and older wise I think it was just a bunch of includes.
Comment by GwanTheSwans at 28/02/2025 at 22:03 UTC*
3 upvotes, 1 direct replies
The classic ones are fairly easily found, only problem is you need to know they were called "Developer CDs" not "SDKs" at the time (and that the numbering of the Developer CDs was not the same as the AmigaOS versions they covered!)
You don't really need anything newer than their headers to develop for AmigaOS 3.x compatibly in general terms as every modern 3.whatever fork is still basically a "3.1++" (and can thus avoid any problematic Hyperion stuff)
1: https://archive.org/details/amiga-developer-cd-v1_1
2: https://archive.org/details/amigadevelopercdv2.1
Note Amiga OS versioning is currently mess as there's this weird ongoing hostile split between the actual owner of Amiga rights (Cloanto or technically their sister company) and belligerent licensee developer of some modernised versions (Hyperion), but all the 3.whatever versions are basically compatible, can just grab the above cdrom images.
https://en.wikipedia.org/wiki/AmigaOS_version_history
Comment by One_Floor_1799 at 28/02/2025 at 20:46 UTC
2 upvotes, 0 direct replies
Maybe something on Aminet for a 3.1 SDK?
Comment by PatTheCatMcDonald at 28/02/2025 at 20:48 UTC
2 upvotes, 0 direct replies
Lattice / SAS C might let you experiment some. This isn't the only site that talks about it.
http://pjhutchison.org/tutorial/sas%5C_c.html[1][2]
1: http://pjhutchison.org/tutorial/sas%5C_c.html
2: http://pjhutchison.org/tutorial/sas_c.html
I would suggest you go look at sneekeruk s idea first though.
Comment by Ok-Current-3405 at 28/02/2025 at 21:40 UTC
2 upvotes, 0 direct replies
I downloaded aztec5 C compiler from aminet. The NDK is also available on AmigaOS 3 CD
Comment by danby at 28/02/2025 at 22:58 UTC
1 upvotes, 0 direct replies
There isn't really one true m68k amiga sdk. Bebbo's amiga-cgc tool chain is probably the best modern(ish) option.There are vscod plugins for amiga c DEV out there too. Either those or digging out one of the old 90s amiga C compilers
Comment by Daedalus2097 at 28/02/2025 at 23:20 UTC
1 upvotes, 1 direct replies
What version of OS3 are you using? This will determine somewhat what you can use. Codecraft for example is a new and still supported IDE and supports the latest NDK for OS 3.2, but requires OS 3.2 to run. It doesn't include a compiler, but should work with any of the major compilers - gcc, vbcc and Lattice / SAS are probably the most common.
The Amiga Developer CD for OS 3.5 is probably the one to go for. It contains the NDK for 3.5 of course, but also the historical NDKs for 3.1 and earlier. It also includes the Storm C compiler, but you can use the headers etc. with your compiler of choice. The 3.9 NDK mentioned elsewhere is an updated subset of this NDK.
It should be noted as well, that all the SDKs allow for creation of software targeting earlier versions of the OS. So even if you use the 3.2 NDK, you can compile software that runs on an OS 1.3, 68000 machine.
Comment by bOingball- at 01/03/2025 at 13:19 UTC
1 upvotes, 0 direct replies
I use cross compiling with the 3.2NDK - Ubuntu in Windows using WSL with my bebbo gcc 13.2 , with my libz library and amissl latest in the opt / Amiga folder - the bebbo gcc compile pulls down 3.2 NDK with a switch and also a switch to use gcc 13.2 - once that’s done I use WinUAE and have my wsl folder where my progs get built as a virtual hard disk. And then I test in the emulator and make chances in Visual Studio Code - it makes for some fast development
Comment by CryptographerTiny733 at 01/03/2025 at 21:14 UTC
1 upvotes, 0 direct replies
I would recommend what @Kellerkind_Fritz said. Bebbo gcc is the way to go for 68k (i am compiling stuff like Heretic2 and other big games and i also use it for 68k). I could provide a cygwin crosscompiler with it if needed.
Comment by Primax_AN at 02/03/2025 at 06:09 UTC
1 upvotes, 0 direct replies
Maybe this is also worth having a look:
Developer tools: Amiga SDKs adapted to GCC compilers, Release 1
https://www.amiga-news.de/en/news/AN-2023-12-00102-EN.html[1][2]
1: https://www.amiga-news.de/en/news/AN-2023-12-00102-EN.html
2: https://www.amiga-news.de/en/news/AN-2023-12-00102-EN.html