🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52705

non-linear gcc-2.1 compile time?

#52705
From: Arthur David Olson
Date: Mon, 25 May 1992 00:50
35 lines
1489 bytes
Should I be worried by the attached non-linear (in terms of compile time)
behavior of gcc-2.1 on a Sun 3?  (The same sort of things happens on a
SPARCstation 2--data not shown.)
-- 
		Arthur David Olson	ado@elsie.nci.nih.gov
		ADO and Elsie are Ampex and Borden trademarks

	Script started on Sun May 24 20:41:19 1992
	elsie$ cat 16.c
	#define s	if (a()) return b()
	#define T(x)	x; x

	main()
	{
		T(T(T(T(s))));
	}
	elsie$ time /usr/local/bin/gcc -S -O2 16.c
		9.3 real         7.8 user         0.5 sys  
	elsie$ diff 16.c 32.c
	6c6
	< 	T(T(T(T(s))));
	---
	> 	T(T(T(T(T(s)))));
	elsie$ time /usr/local/bin/gcc -S -O2 32.c
	       37.6 real        36.9 user         0.5 sys  
	elsie$ diff 32.c 64.c
	6c6
	< 	T(T(T(T(T(s)))));
	---
	> 	T(T(T(T(T(T(s))))));
	elsie$ time /usr/local/bin/gcc -S -O2 64.c
	       97.1 real        96.3 user         0.5 sys  
	elsie$ exit

	script done on Sun May 24 20:45:01 1992
Technical Details
Message-ID: <1992May25.005022.17767@alw.nih.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!nih-csl!elsie!ado

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8bfb0ea49e9e1fc6,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-05-24 13:05:20 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!nih-csl!elsie!ado
From: ado@elsie.nci.nih.gov (Arthur David Olson)
Subject: non-linear gcc-2.1 compile time?
Message-ID: <1992May25.005022.17767@alw.nih.gov>
Followup-To: poster
Sender: postman@alw.nih.gov (AMDS Postmaster)
Organization: National Institutes of Health
Date: Mon, 25 May 1992 00:50:22 GMT
Lines: 35