User:Wxwisiasdf/Compile GCCMVS under MVS3.8j: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{stub}} Building GCCMVS is a quite trivial task - depending on who you ask. '''You need Windows/Wine for this.''' == Preparation == Download custom.zip from PDOS.org: * h...")
 
No edit summary
Line 21: Line 21:
* http://gnuwin32.sourceforge.net/packages/m4.htm
* http://gnuwin32.sourceforge.net/packages/m4.htm


MVS3.8j has a 2.0 release but it accidentally had malware embedded on it - so I made a version without the trojan:
MVS3.8j has a 2.0 release but it had a trojab embedded on it by accident (apparently?) - so I made a version without the trojan:
* https://archive.org/details/mvs380-2_0
* https://archive.org/details/mvs380-2_0



Revision as of 05:38, 17 January 2022

This page is a stub.
You can help the wiki by accurately adding more contents to it.

Building GCCMVS is a quite trivial task - depending on who you ask.

You need Windows/Wine for this.

Preparation

Download custom.zip from PDOS.org:

Extract gcc-stage-*.zip (* = any version, 320, 270, etc); the extraction should yield a folder named `gcc` (do not extract and make directory!)

Download PDOS and put it on your `gccmvs/` folder, so that the pdos/pdpclib can be accessed via gccmvs/pdos/pdpclib:

You need an emulator for this, since MVS3.8j does not run under x86, it only runs on S/390. So download the Hercules/380 emulator (it implements an S/380 to allow usage of more than 16 MiB of memory, which to be realistic is pretty cool, it won't run on realiron however (but your compiled programs should do tho)).

You'll also need a program called m4 for macro processing, make sure it's in your %PATH% and that you can run it:

MVS3.8j has a 2.0 release but it had a trojab embedded on it by accident (apparently?) - so I made a version without the trojan:

Now, you have code, which is mostly known to be useless if not compiled - so let's get into that.

Building

Open a command prompt in your root directory where you extracted `pdos` and `gcc`. Type in the following:

cd gcc/gcc
allmvs.bat

You now patiently wait until everything finishes.

If you see an RC=12 or **FLUSH** message from ASMA90 then you have an error - good luck with that!

I run out of memory!

You must use Hercules/380, you can't use normal Hercules.

TODO: someone should attempt to get gccmvs compiled under MUSIC/SP