🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mod.computers.apollo
2 messages
2 total messages Started by Eduardo Krell Fri, 22 Nov 1985 00:06
/usr/include/a.out.h missing in SR9
#1
Author: Eduardo Krell
Date: Fri, 22 Nov 1985 00:06
4 lines
891 bytes
I was trying to port a 4.2 program to SR9 and found that there is no
<a.out.h>. It could be that just the node I was using was missing that
file but if indeed there is no a.out.h then what do you do with programs
that use "sizeof exec" ?
Re: /usr/include/a.out.h missing in SR9
#4
Author: John W Peterson
Date: Fri, 22 Nov 1985 06:33
17 lines
1652 bytes
The fact that a.out.h is missing is intentional.  Because the Apollo doesn't
use the wretched Bell labs/PCC compiler, the internal format of binary
and library files is completly different.  The linker (what Apollo calls
the binder) is also much different, for example you can't use "ar" to build
subroutine libraries.

If the program you're porting depends extensivly on the binary file format
(and hence a.out.h) you may simply be out of luck (though I've heard rumors
of a compatibilty kludge for SRn+i).  However, in several cases of porting
code here I've been able to work around it by no-op'ing out whatever feature
needed to look at a.out.h (e.g., things that dig in /dev/kmem to find
load averages and so forth).

[Personally, I would never trade the Apollo's C compiler for PCC compatibility.
It runs 2-3 times faster than PCC, produces much better diagnostics,
and has better debugging facilities...]
-------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads