🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #34886

Problems with MWC compiling C-TeX

#34886
From: Lars Bo Nielsen
Date: Thu, 27 Oct 1988 15:54
38 lines
2132 bytes
Hi, out there..

I'm having some problems compiling the c-source codes for TeX (using
MWC ver. 3.0 on a Mega 4), as generated from tex.web by web2c, and I'm
having some problems (it bombs (bus-error) ;-). But, I have an idear
that the problem comes from the datatypes in the file `memory.h',
where a couple of unions and structs are being typedef'ed:

typedef union { struct { halfword RH, LH; } v;
    struct { halfword junk_space; quarterword B0, B1;} u;
} twohalves;
typedef struct { struct { quarterword B0; quarterword B1;} u;
    quarterword b2; quarterword b3;
} fourquarters;
typedef union {integer cint; glueratio gr; twohalves hh; fourquarters qqqq;
} memoryword;

with integer = long (32 bit), halfword = short (16 bit), and
quarterword = char (8 bit). MWC tells me that it has problems with the
union memoryword:

	Strict: size of union overflows size_t

The manual says that `size_t' is an internal constant, but when it's
only a strict code is generated. Another problem might be the arrays.
Ver. 3.0 of MWC should be able to handle arrays > 64K, but are there
still some problems?

Could somebody please give me a hint, or has anybody succesfully
compiled TeX on an Atari?

 /========================================================================\
 | Lars Bo Nielsen                 |  lbn@iesd.dk                         |
 | Department of Computer Science  |  {...}!mcvax!diku!iesd!lbn           |
 | Aalborg University, St. 19      |--------------------------------------|
 | DK 9000 Aalborg                 | Wise words in latin:                 |
 | D E N M A R K                   | Vir prudens non contra ventum mingit |
 \========================================================================/
Technical Details
Message-ID: <922@iesd.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!enea!dkuug!iesd!lbn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!enea!dkuug!iesd!lbn
From: lbn@iesd.uucp (Lars Bo Nielsen)
Newsgroups: comp.sys.atari.st
Subject: Problems with MWC compiling C-TeX
Keywords: web2c, C-TeX, MWC, unions and size_t
Message-ID: <922@iesd.uucp>
Date: 27 Oct 88 15:54:27 GMT
Reply-To: lbn@iesd.dk
Organization: Dept. of Comp. Sci., Aalborg University, Denmark
Lines: 38