On Monday, May 10, 2021 at 10:10:19 PM UTC+10,
muta...@gmail.com wrote:
> I wonder - is it possible to produce 32-bit command-line
> executables that work under both "normal" FreeBSD and
> also MacOS?
It occurs to me that although my custom GCC 3.2.3
was written sometime around 2004 I think, I think
prior to Apple switching to x86, so there won't be a
Mac target, there would hopefully be a FreeBSD target,
and using my existing software as a base, ie GCC 3.2.3,
binutils 2.14a and PDPCLIB, I can probably crank out
FreeBSD executables, and thus hopefully Mac executables.
And yep, I just checked - there is a freebsd and a
freebsd-aout. That latter is particularly appealing
because I have already built binutils to produce
a.out executables.
I just checked the other one, and it is ELF.
BFN. Paul.