OS/2, eCS & ArcaOS - Technical > Programming

Alternatives to compiling Rust in Firefox port OS/2

<< < (12/16) > >>

Dave Yeo:
Yet, you probably know more then most of us, if only from hacking on the GCC source. There are people who seem to instinctively understand this stuff though, AZ who did the GCC 2.9x ports was one. IBM chased him down and payed him to do the first kLIBC GCC port, 3.22 or so for Mozilla. There was someone else who ported GCC back in the day for fun, a different port then EMX. So much software lost.

Paul Smedley:
Hi All,


--- Quote from: Dave Yeo on May 15, 2021, 04:10:31 am ---Yet, you probably know more then most of us, if only from hacking on the GCC source. There are people who seem to instinctively understand this stuff though, AZ who did the GCC 2.9x ports was one. IBM chased him down and payed him to do the first kLIBC GCC port, 3.22 or so for Mozilla. There was someone else who ported GCC back in the day for fun, a different port then EMX. So much software lost.

--- End quote ---

Just an update on this - the issue with OS/2 executables and elf format object files appears to be a wl (Watcom Linker) bug. I built as.exe with coff object format and a simple hello world executable runs ok.

I'll use this to continue with some tweaks to gcc and emxelfld.exe as time permits, to see what's possible - ie can we still build a DLL with the tools and whatever other changes may be required.

Cheers,

Paul.

Paul Smedley:
FWIW the example helloworld.o in coff format, as as-coff.exe is at https://smedley.id.au/tmp/helloworld-coff.zip

Paul Smedley:
Quick update, with https://smedley.id.au/tmp/gcc-11.1.0-os2-coff-20210522.zip - I can compile and link *C* executables with assembly produced in the COFF format. (For ELF, we have a bug with wl.exe preventing a valid executable being created).

Note c++ executables can't currently be linked. This is because weakld.c (part of emxomfld) only understand OMF, so I have currently commented out weak_prelink() in emxelfld, so we don't have weak symbols support.

For weakld,  https://github.com/bitwiseworks/libc/blob/master/src/emx/src/emxomf/weakld.c in WLDAddObject() will need to be enhanced so it understands coff (and eventually ELF).

Paul Smedley:
Resurrecting this thread, as it seems more  relevant than starting a new one...

I started looking at llvm this weekend - if successful, this would give us  a port of clang, which is the first building block needed to even attempt to build rust...

If there is interest, I'll  post updates here. Given the seeming lack of interest in other compiler/tool news (ie GCC 12) I'm not sure that anyone will  care.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version