🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.os.os9
Article #15

OSK C and make bugs

#15
From: daleske
Date: Wed, 20 Aug 1986 13:50
21 lines
1503 bytes
Here's a bug I found in the 2.0 C compiler:  If the address of a 
routine over 32k bytes away is passed to another routine as a third
argument, the address is passed incorrectly without any warning from
the linker.  The offending code is a pc relitive pea instruction,
which the -a option to l68 does not convert or give an error about.
(The linker is only documented to fix branch and lea instructions.)
I can supply an example program if there is interest.  Users of tputs
in large programs beware.

The C compiler will accept a variable named PC, but the assebler will
not asseble the code produced.  This is a problem because PC is an
external variable used by the termlib routines.

Make (1.3) does not like tabs.  Depending on where the tab is in your
makefile, it may bomb out or may just silently not compile files
needing compiled.

-- 
Bob Larson
Arpa: Blarson@Usc-Eclb.Arpa	or	blarson@usc-oberon.arpa
Uucp: (ihnp4,hplabs,tektronix)!sdcrdcf!usc-oberon!blarson
Technical Details
Message-ID: <1534@cbdkc1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!mordor!sri-spam!nike!cit-vax!ll-xn!caip!clyde!cbatt!cbdkc1!daleske

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!mordor!sri-spam!nike!cit-vax!ll-xn!caip!clyde!cbatt!cbdkc1!daleske
From: daleske@cbdkc1.UUCP
Newsgroups: mod.os.os9
Subject: OSK C and make bugs
Message-ID: <1534@cbdkc1.UUCP>
Date: Wed, 20-Aug-86 09:50:32 EDT
Article-I.D.: cbdkc1.1534
Posted: Wed Aug 20 09:50:32 1986
Date-Received: Thu, 21-Aug-86 05:44:28 EDT
Organization: USC Computing Services, Los Angeles, CA
Lines: 21
Approved: daleske@cbdkc1.ATT.COM