🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Hans van Staveren Fri, 20 Jan 1984 15:27
V7 PDP 11 C-optimizer bug (minor)
#131
Author: Hans van Staveren
Date: Fri, 20 Jan 1984 15:27
17 lines
1085 bytes
While massaging the C-optimizer to generate subroutine calls for
floating point instructions I encountered the following minor bug.

In the routine opsetup(), file c20.c there is a line

	if (ophp > &ophash[OPHS])

this must be changed to

	if (ophp >= &ophash[OPHS])

Due to luck of the implementors this does not matter for the standard
application of the C-optimizer.  The symptom is that the 'subf'
instruction falls off the end of the hashtable and is therefore lost.
-- 
			Hans van Staveren, Vrije Universiteit Amsterdam
			..!mcvax!vu44!tjalk!sater
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