Issue Details (XML | Word | Printable)

Key: PCC-401
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Anders Magnusson
Reporter: Gregor Richards
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

SVR4 target

Created: 24/Aug/12 05:04 PM   Updated: 30/Aug/12 07:44 PM
Component/s: Common code
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. Text File pcc-1.0.0.diff (4 kB)
2. Text File pcc-libs-1.0.0.diff (0.9 kB)

Environment: i386-svr4

 Description  « Hide
This may seem silly or spurious, and, well, it is.

I found AT&T UNIX System V disks without the C compiler system, and wanted a working compiler. So I made one. Out of pcc. The attached patches add a working i386-svr4 target to pcc 1.0.0, and pcc-libs 1.0.0.

Only posting this on the issue tracker for posterity. If you feel it's too absurd of a platform to add as a target, leave it out :)

The target files are based on sunos, since the two OSes are basically the same. In pcc-libs I actually just extended the sunos target to svr4*|sunos*|solaris*, since they're literally identical for those purposes.

I cannot confirm that any of this works with the original headers or crt files since I had to cobble those together myself, plus the backend depends on GNU ld since I don't have the original linker (it uses GNU-specific --dynamic-linker flag). But I can confirm that this runs on a real AT&T UNIX System V/386 Release 4.0 system, and produces working binaries.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 30/Aug/12 07:44 PM
Well, there are older OSes supported by PCC, so this would be just in line :-)
Applied to -current, thanks!