🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bjarne Stroustrup Fri, 18 Jul 1986 01:35
looking for help porting C++
#255
Author: Bjarne Stroustrup
Date: Fri, 18 Jul 1986 01:35
29 lines
1909 bytes
> From: michael@python.UUCP (M. Cain)
> Organization: Bell Communications Research
>
> I'm trying to port C++ to a Hewlett-Packard 550 running
> HPUX.  I was able to make cfront from the ..c files in
> the distribution.  However, cfront complains that "this
> c does not support varargs" when compiling some parts of
> the library and the C++ source for cfront.  HPUX *does*
> support varargs -- but the 550 runs its stack "backwards"
> from the way its done on a VAX.
> ...
> Grepping the C++ source for cfront and the distributed
> include files, I found that none of them reference varargs.h.
> This seems to imply that the code hardwires assumptions about
> the stack, rather than using the stuff in varargs.h.

You are right. Cfront does those assumptions hardwired. The snag is
that when I wrote it I didn't have a C++ varargs and I somehow never
got around to rewriting that part of cfront. Sorry.

> Questions:  Has anyone else had this problem in doing a port?
> Does anyone have any suggestions for fixing the problem?

Yes (are you there Chris?). Actually someone just solved that exact
problem for a Data General machine, but I don't have the code. The
assumptions are locallized to the function error() in error.c. Error()
does a printf-style passing of error message format strings. Fix the way
it gets at its arguments and cfront will run. The same problem occurs
in the function form() in file out.c in the stream library.
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