Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: GCC - updates
« Last post by Jochen Schäfer on Today at 10:53:10 am »
Fair enough. I'm just interested, what it would take to have a cross compiler.

Don't get me wrong, there could be definite benefits - for example - building qtwebengine on OS/2 is a PITA due to g++ processes consuming ~2gb of RAM on large compilations, so having to limit the number of ninja processes - building on a modern linux system could allow multiple processes to run without memory exhaustion.
I'm doing the same for the DOSBOX-X cpu core files.
Another benefit would to have Github actions automatically build the code, so we would some sort of integration test.
2
Programming / Re: GCC - updates
« Last post by Paul Smedley on Today at 10:25:51 am »
Fair enough. I'm just interested, what it would take to have a cross compiler.

Don't get me wrong, there could be definite benefits - for example - building qtwebengine on OS/2 is a PITA due to g++ processes consuming ~2gb of RAM on large compilations, so having to limit the number of ninja processes - building on a modern linux system could allow multiple processes to run without memory exhaustion.
3
Programming / Re: GCC - updates
« Last post by Jochen Schäfer on Today at 10:22:30 am »
Hi Paul.

Fair enough. I'm just interested, what it would take to have a cross compiler.
4
Programming / Re: GCC - updates
« Last post by Paul Smedley on Today at 10:15:46 am »
Hi Jochen,
Thanks for the answer. So for a cross compiler setup, we would need a port of these emx tools. The OpenWatcom stuff is already there.
Am I correct? (I know, it's certainly not that easy to do)
For a cross compiler, we'd also need binutils compiled on the host platform with the changes for os2 a.out. We'd probably also need a port of ld.exe that supports EMX a.out for configure tests.

I've thought about a cross compiler a couple of times and it's made my head hurt.

I'd rather spend energy trying to get wlink to work with coff or gas object files - and trying to update the toolchain to support those.
5
Programming / Re: GCC - updates
« Last post by Jochen Schäfer on Today at 09:12:20 am »
Hi Paul.

Thanks for the answer. So for a cross compiler setup, we would need a port of these emx tools. The OpenWatcom stuff is already there.
Am I correct? (I know, it's certainly not that easy to do)
6
Programming / Re: GCC - updates
« Last post by Paul Smedley on Today at 07:26:06 am »
Expanding on Dave's comments, I tend to compile in a.out (the default) but then link with -Zomf which makes the compiler invoke emxomfld which uses emxomf and wlink to make the executables or DLLs.

This code is all basically evolved from the earlier gcc 3.x builds.
7
Programming / Re: GCC - updates
« Last post by Dave Yeo on April 28, 2025, 11:28:59 pm »
Just a question: What are we doing to produce OS/2 binaries?
Do we call emxomf, wlink etc. to convert the binaries?

Set up your environment and then the usual gcc flags work.
My gcc1510env.cmd is attached, adjust if needed. Put it on your PATH, execute in a cmd session, check by running gcc-v, then use as older GCC's
8
Programming / Re: GCC - updates
« Last post by Jochen Schäfer on April 28, 2025, 02:44:56 pm »
Just a question: What are we doing to produce OS/2 binaries?
Do we call emxomf, wlink etc. to convert the binaries?
9
Programming / Re: GCC - updates
« Last post by TeLLie on April 28, 2025, 12:36:18 pm »
Hi Paul,

This versions works very well.
Also the -jx  works ok

Greetz Tellie
10
Programming / Re: GCC - updates
« Last post by KO Myung-Hun on April 28, 2025, 11:35:03 am »
This has no problems at all with my regression tests, and works fine with 'make -jx'.

Thanks!
Pages: [1] 2 3 ... 10