Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compiling vax kernel with pcc

25 views
Skip to first unread message

Anders Magnusson

unread,
Jul 28, 2011, 7:25:30 AM7/28/11
to
Hi,

I have resurrected the vax target from the dead and just compiled a
NetBSD/vax kernel with pcc.
Haven't tried to boot it yet though, will do that when I have setup a
vax to boot on .-)

I assume that OpenBSD will compile as well, but I need to setup a vax
for that to test also.

No fancy addressing modes are implemented yet, so the kernel became
unneccessary large,
about 20% bigger than a gcc compiled kernel. This will be added later.

Anyway, hopefully this means that vax soon can be added to the list of
"officially supported"
pcc targets :-)

-- Ragge


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Anders Magnusson

unread,
Jul 28, 2011, 9:29:34 AM7/28/11
to
On 07/28/2011 02:49 PM, Brad Parker wrote:
>> No fancy addressing modes are implemented yet, so the kernel became
>> unneccessary large,
>> about 20% bigger than a gcc compiled kernel. This will be added later.
> If this is something mere mortals can reproduce? If so, I'd enjoy
> trying it out.
Yep, no problem. Just fetch the current source, see
http://pcc.ludd.ltu.se/downloads/ for details.

If you are running on a vax just compile the kernel with CC=pcc, if
you're cross-compiling
then you need to fix the cross-build environment in some way.
>
> I regularly boot netbsd/vax for 11/7xx using the simh simulator. It's
> easy to set up. Once it
> works I copy my image to a scsi disk and boot on a real live 11/730.
>
> My assumption (perhaps incorrect) is that once pcc is up to speed it
> might well generate better
> code for the vax than gcc does, with less cpu and memory.
Well, I wouldn't be sure of that, but there are a bunch of optimizations
that still can be
added to pcc for vax.

Brad Parker

unread,
Jul 28, 2011, 8:49:06 AM7/28/11
to
Anders Magnusson wrote:
> Hi,
>
> I have resurrected the vax target from the dead and just compiled a
> NetBSD/vax kernel with pcc.
> Haven't tried to boot it yet though, will do that when I have setup a
> vax to boot on .-)
yea!

> No fancy addressing modes are implemented yet, so the kernel became
> unneccessary large,
> about 20% bigger than a gcc compiled kernel. This will be added later.
If this is something mere mortals can reproduce? If so, I'd enjoy
trying it out.

I regularly boot netbsd/vax for 11/7xx using the simh simulator. It's

easy to set up. Once it
works I copy my image to a scsi disk and boot on a real live 11/730.

My assumption (perhaps incorrect) is that once pcc is up to speed it
might well generate better
code for the vax than gcc does, with less cpu and memory.

-brad

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages