Article View: comp.text
Article #6646Re: METAFONT Trap test fails on MIPS. Help!
From: Rudy Wang
Date: Tue, 09 Jan 1990 22:16
Date: Tue, 09 Jan 1990 22:16
46 lines
2735 bytes
2735 bytes
In article <5273@blake.acs.washington.edu> lgy@newton.phys.washington.edu (Laurence Yaffe) writes:
>In article <1990Jan9.125234.3893@keysec.kse.com> gm@keysec.kse.com (Greg McGary) writes:
>>MF 1.7 from the UNIX-TeX distribution fails the trap test on a MIPS b.
>>I'll give a brief report here, and if some kind soul would like more of the
>>gory details, I'll give a complete report via mail.
>
>>-- Greg McGary
>>-- Key Systems Engineering
>>-- Work: (703) 742-7870 Home: (703) 352-0407
>>-- gm@kse.com, gm@cs.duke.edu, ..!uunet!keysec!gm
>
> I've built both TeX and Metafont using MIPS' 2.0 compilers and had
>them successfully pass the TRIP and TRAP tests. In 'site.h', I use:
>
> #define SYSV
> #undef BSD
> #undef ANSI
> typedef signed char schar;
>
>The 'signed char' in the last typedef is cruical. I've tried using both
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>#define SYSV (and /bin/cc) and #define BSD (and /bsd43/bin/cc) - both worked
>when optimization no greater than -O1 was used. Using -O2 breaks something
>in both TeX and Metafont. I've sent MIPS a bug report about this many months
>ago, but never heard whether the problem has been found. Hope this helps.
>
>--
>Laurence G. Yaffe Internet: lgy@newton.phys.washington.edu
>University of Washington Bitnet: yaffe@uwaphast.bitnet
I'm sure most programmer don't like to read man pages, specially when
the it gets to be 20 screenfuls. But if you actually picked your way
through the zillion cc options, you'll for sure come upon the following:
-signed Cause all cahr declarations to be "signed char"
declarations, the default is to treat them as
"unsigned char" declarations.
This may or may not cure your problems, but I believe it should relieve
the pain of typedef'ing "schar" and change all your "char"s to "schar"s.
--
UUCP: {ames,decwrl,prls,pyramid}!mips!rudy (or rudy@mips.com)
DDD: 408-991-0247 Rudy Wang (or 408-720-1700, Ext. 247)
USPS: MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086-3650
Quote: I think they're for 1 AM - Descartes, about his midnight snacks
Technical Details
Message-ID:
<34278@mips.mips.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!brutus.cs.uiuc.edu!apple!mips!batman!rudyReferences:
<1990Jan9.125234.3893@keysec.kse.com> <5273@blake.acs.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!brutus.cs.uiuc.edu!apple!mips!batman!rudy From: rudy@mips.COM (Rudy Wang) Newsgroups: comp.text,comp.sys.mips Subject: Re: METAFONT Trap test fails on MIPS. Help! Summary: -signed cc option flag Keywords: METAFONT, MIPS Message-ID: <34278@mips.mips.COM> Date: 9 Jan 90 22:16:06 GMT References: <1990Jan9.125234.3893@keysec.kse.com> <5273@blake.acs.washington.edu> Sender: news@mips.COM Reply-To: rudy@mips.COM (Rudy Wang) Followup-To: comp.text Distribution: na Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 46