🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by root Fri, 24 Oct 1986 17:25
Register overflow problem
#337
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads