Looking for an open source cross assembler/linker
Hello,
I want to write some 68k Amiga software, cross-compiled from Linux (porting a compiler). It's a combination of C and asm using gcc. Unfortunately it looks like GNU binutils doesn't support the Amiga, and Amiga binaries are rather hard to generate by hand. It looks like most people use vasm and vlink but I can't use those due to the restrictive licenses. There's got to be others --- I just can't find any! Can anyone point me at anything? It doesn't need to complex as I only need a single code and data segment. Thanks! |
There is an GCC port for making Amiga software that is reasonably up to date and includes the binutils, maybe that can help?
See here: https://github.com/bebbo/amiga-gcc |
https://github.com/bebbo/amiga-gcc has an Amiga Hunk-compatible binutils package.
Edit- ninja'd |
Quote:
|
D'oh! I saw that, but as the list of software included vlink I thought binutils was just being used as an assembler. Building it now. Thanks!
|
Quote:
|
The usage restrictions (no commercial use) will keep it out of nearly all Linux distributions, such as Debian. It prevents them from selling CDs or DVDs with the software on it. See 12.A.j or 34.A.0 here: https://people.debian.org/~bap/dfsg-faq.html The exemption clause for targeting Amiga binaries doesn't help because in source form the program isn't targeted at anything, which means it doesn't kick in.
In addition to that, distributing modifications is completely disallowed, which violates 34.A.1 and 34.A.3. (And also makes it useless for my purposes as I can't, e.g., integrate it into my build system.) |
Quote:
|
Maybe www.aminet.net A68k by Charlie Gibbs and Pdc (Sozoban Compiler) will be ok for what you need?
|
Quote:
|
Quote:
|
I've managed to build bebbo's toolchain, so I'll give that a try. Thanks very much.
Re not being able to distribute modifications: it means I can't check the source code into my VCS, edit the Makefile to preconfigure it, add a file to make it build with my non-Make-based build system, or fix any bugs. I'd have to distribute the original source archive, and add machinery to my build system to unpack it and apply an external patch in order to build it. And it still wouldn't be allowed in Debian. I've actually done this before with vbcc (see https://cowlark.com/vbcc-z-compiler) and it just isn't worth it, especially if I can find a different toolchain. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
That's fine --- it's your software, you can do what you like with it! It's just that those decisions mean that I can't use it.
|
A couple of years ago I was also doing some cross-development with A68k, and I was missing a cross-platform blink counterpart. So I wrote a little toy linker in Python called "hunky" that mimics blink. The idea was that I could use A68k/hunky for cross development and A68k/blink natively on KS1.3.
Reading this thread reminded me of that little project, so I decided to put it online. Again, this is only a toy that just implements the bare minimum of functionality to link an executable. I am not actively working on it at the moment, but maybe it is of interest to someone. |
All times are GMT +2. The time now is 19:04. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.