🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lsi
Article #1011

1986 Berkeley tools: Preprocessor problem w/ Meg input file

#1011
From: Dave Landis
Date: Wed, 09 Mar 1988 18:58
38 lines
1373 bytes
I'm attempting a port of the 1986 Berkeley tools to a Mentor DN3000.
I've successfully run 'make' on the meg subdirectory, but I run into
problems when I try the example in the documentation.   It goes something
like this:

INPUTS:  INIT OP1 OP2 SWR MACK;
OUTPUTS: WAIT MINIT MRD SACK MWR DLI;

-- Define the encoding for the processor operations
-- The C preprocessor does textual substitions on these macros.
#define OP  OP1 OP2
#define NOP   0   0
#define HALT  0   1
#define READ  1   0
#define WRITE 1   1
#define XOP   ?    ?
.
.
.
When I type

	meg multibus.in

I get the error message

	"unexpected token IDENTIFIER on line 6"

Has anyone experienced anything like this before?   If so, how did
you fix it?  For now, I'll just have to live with substitions where
these macros occur, but I'd love to use the preprocessor.

Thanks in advance, 

Dave Landis
NCR Corp.
3718 N. Rock Road
Wichita, KS 67220
(316)-688-8861
Technical Details
Message-ID: <192@enlog.Wichita.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!ncrlnk!ncrwic!encad!enlog!dlandis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!ncrlnk!ncrwic!encad!enlog!dlandis
From: dlandis@enlog.Wichita.NCR.COM (Dave Landis)
Newsgroups: comp.lsi
Subject: 1986 Berkeley tools:  Preprocessor problem w/ Meg input file
Message-ID: <192@enlog.Wichita.NCR.COM>
Date: 9 Mar 88 18:58:48 GMT
Organization: NCR Corporation, Wichita, Kansas
Lines: 38
Keywords: Meg, Preprocessor