Oy, what a total fockin' mess this is ...
Strap yourself in and grab either some popcorn

or an alcoholic drink; it's going to be quite a ride:
So I pursued the path (CH32) suggested by Bruce Hoult, even though there was some kind of barrier every single step of the way.
Since I was told that
this script (
install_xpack_gcc.ps1) held the keys to the kingdom, I set about obtaining and running it.
First hurdle was obtaining a Git client and using it to clone the repository as Bruce said I needed to do.
Problem #0: getting a Git client that runs under Windows 7I Googled (gawd how I hate using that verb!) for a compatible Git client.
I was cheerily told, by the "AI overview" (and also by several non-"AI" pages) that yes, there were several such clients that would run under my OS.
BULLSHIT!Every single fucking one of them, when I went to the download page, said that they required either Windows 11 in most cases or Windows 8 in one or two.
None of them ran under Windows 7!Well, still undeterred, though thoroughly flummoxed, nevertheless in the spirit of "there must be a way!", I pressed on. Finally found one on about the 7th or 8th try. Turned out that NitroGit does indeed run under 7, so I used it, entered the URL of the repository and voila! there it was on my very own hard drive. (The software I downloaded, NitroGit, was only a crippleware demo, but it still allowed me to clone the stuff.)
Now back to that mysterious file,
install_xpack_gcc.ps1, which was sitting there on my computah.
I didn't even know what this was at first; turns out it's a Windows PowerShell script. I'd never heard of those things, never had need to use them. I was about to learn.
Turns out I had PowerShell on my computah (comes with Windows 7, apparently). I tried running the script under it. That's when the real fun started.
Problem #1: how do I run the damn thing?So I quickly figured out that PowerShell was basically a glorified "command window" using some of the same old DOS commands, so I was able to navigate to the script file by typing the drive letter, then using
cd to get to the folder. (Hey, just like Unix, right?) So far, so good.
Typed the name of the script:
PS E:\Programming stuff\Assembly language\ch32\ch32fun\misc> install_xpack_gcc
install_xpack_gcc: The term 'install_xpack_gcc' is not recognized as a name of a cmdlet, function, script file, or
executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Suggestion [3,General]: The command install_xpack_gcc was not found, but does exist in the current location. PowerShell
does not load commands from the current location by default. If you trust this command, instead type: ".\install_xpack_g
cc". See "get-help about_Command_Precedence" for more details.
OK, weird (why would they require you to prefix the filename with the "current path" identifier in order to run something? what crazed programmer thunk this up? someone's idea of a "safety feature"?) but OK, I can play along.
Problem #2: You don't have permission to run scripts!After properly typing the script name prefixed with "
.\" PowerShell told me that I wasn't allowed to run scripts! Something something about permissions. However, it did tell me, cryptically, how to correct that, which I did through some convoluted, overly-verbose "cmdlet" or other. Tried again.
Problem #3: PowerShell doesn't understand the god-damned script!When attempting to run the script, I got an immediate error message saying that it didn't understand the keyword "
using" which is the first damned thing in the file!
OK, to cut to the chase a bit quicker, it dawned on me that my version of PowerShell was probably older than what the script required. I did an online search for "upgrade powershell windows 7" or something and found a page (Reddit? forget exactly where) that had a link to the last version of PowerShell that would run under Windows 7. Downloaded and installed it (it also required a companion file, some Windows "MultiPkg" something or other which I first downloaded and installed).
After that I had a brand spanking new copy of PowerShell 7. Which I was
finally able to use to run that script and install ... now what is it I'm installing? ... oh yeah, something called "Xpack".
Which I now have, somewhere on my C: drive.
Now that I have this stuff I'm still not sure what I'm supposed to do with it.
Stay tuned if you've read thus far and your eyes haven't completely glazed over ...
Quite a convoluted chain:
Git client→ GitHub repository→ PowerShell script→ Xpack stuff→ have fun with CH32