Forum > Other

FPC for SPARC v7

(1/10) > >>

praetor:
Howdy y'all!

So, as some of you know I'm working on and SGI IRIX port, but I figured I'd learn how to cross compile and tweak on a known platform where there are already all the bits, so I chose Solaris because I think it would be cool to have a pascal compiler on my little Sun IPX. But the problem is the IPX has a SPARCv7 CPU and FPC generates 8+ binaries. I'm kinda invested in this project and have learned SO MUCH, but how do I get the compiler to shoot out a v7 binary?

Thanks!

MarkMLl:
Oh crap. Can you give us a quick reminder of what's what as far as architecture variants are concerned?

I had one of those and replaced its battery etc. circa (finger-in-wind guess) 2012, but I think I found that I couldn't get anything approaching a recent Linux on it let alone the system libraries etc. that would allow FPC to run... that would have been around FPC 2.7.1 which as verified by PascalDragon a few days ago should equate to 3.0.0.

I'm pretty sure I discussed this on the fpc-devel mailing list, and that Jonas highlighted a couple of opcodes that FPC really required and that the CPU in the IPX lacked.

I /think/ I had FPC running on e.g. SPARCstation 20 and SPARCserver 1000 both with some version of Linux... possibly only kernel 2.0 in the case of the SS1000 since the bus initialisation was fouled up: I got flamed by Dave Miller who didn't like my interim fix, and I never really got to grips with later versions.

I definitely had FPC circa 2.7.1 running on various later systems: those were the ones with a 64-bit Linux kernel but 32-bit userland. I can't remember where I got to with pukka SunOS/Solaris, at least one copy of that self-destructed on me which made me suspect that Oracle had intentionally put a timebomb in their "free" versions.

I also has it running on OpenSXCE which was pretty good, but that project imploded since the developer was in the Eastern Ukraine and the whole thing turned political after Russia's invasion and occupation of the Crimea.

I've got a small server here, but since Debian's support for both 32- and 64-bit SPARC ground to a halt I haven't a clue what OS I've got on it or what OS I could put on it: my recollection is that in the past I've concluded that Debian "Lenny" was rather a sweet spot in terms of robust support for "minority" architectures with reliability tailing off either side.

That's really the best I can do for the moment. I suggest looking through the fpc-devel and possibly Lazarus ML archives for relevant postings.

MarkMLl

Handoko:

--- Quote from: praetor on March 29, 2022, 04:08:30 pm ---But the problem is the IPX has a SPARCv7 CPU and FPC generates 8+ binaries. I'm kinda invested in this project and have learned SO MUCH, but how do I get the compiler to shoot out a v7 binary?

--- End quote ---

Not sure but maybe this can help.

I didn't prepare the cross compiler for Solaris SPARC target. But on my Lazarus I can choose the compiler option for SPARC V7 and reveal the command line parameters:

-Tsolaris -Psparc -CpSPARC V7

MarkMLl:

--- Quote from: Handoko on March 29, 2022, 04:54:09 pm ---I didn't prepare the cross compiler for Solaris SPARC target. But on my Lazarus I can choose the compiler option for SPARC V7 and reveal the command line parameters:

-Tsolaris -Psparc -CpSPARC V7

--- End quote ---

Certainly worth trying, since that might be something that got into the compiler after I had that particular system.

MarkMLl

marcov:
A commandline option with a space in it is doubtful. If you have a sparc crosscompiler, fpc -i should give you a list of available CPU options

Navigation

[0] Message Index

[#] Next page

Go to full version