🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #337

Register overflow problem

#337
From: root
Date: Fri, 24 Oct 1986 17:25
40 lines
1250 bytes
Why do I get the register overflow in the following example:

# cat a4.c
main()
{
	register int i,j,k;
	float ag[5][5],dummy,xxx;

	dummy = ag[i][j] + xxx;
}
# cc -c a4.c
6: Register overflow: simplify expression
6: Register overflow: simplify expression
# pcc -c a4.c
# cat a5.c
main()
{
	register int i,j;
	float ag[5][5],dummy,xxx;

	dummy = ag[i][j] + xxx;
}
# cc -c a5.c
# diff a4.c a5.c
3c3
< 	register int i,j,k;
---
> 	register int i,j;


I've tried different variable names.  No difference.  The computer is a
PDP 11/44 running 2.9bsd.

	Kevin W. Thomas
	Univ. of Oklahoma
	School of Meteorology
	Norman, OK  73019

UUCP:	ihnp4!occrsh!uokmet!kwthomas	ihnp4!okstate!uokmax!uokmet!kwthomas
Technical Details
Message-ID: <1500024@uokmet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!sundc!oktext!occrsh!occrsh.UUCP!uokmet.UUCP!authorplaceholder

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!sundc!oktext!occrsh!occrsh.UUCP!uokmet.UUCP!authorplaceholder
From: root@uokmet.UUCP
Newsgroups: net.bugs.2bsd
Subject: Register overflow problem
Message-ID: <1500024@uokmet.UUCP>
Date: Fri, 24-Oct-86 12:25:00 EST
Article-I.D.: uokmet.1500024
Posted: Fri Oct 24 12:25:00 1986
Date-Received: Mon, 27-Oct-86 22:20:01 EST
Lines: 40
Nf-ID: #N:uokmet.UUCP:1500024:000:697
Nf-From: uokmet.UUCP!root    Oct 24 11:25:00 1986