🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41778

giant if..else optimization

#41778
From: HASDI RODZMANN HASHIM
Date: Sun, 18 Feb 1996 00:00
20 lines
890 bytes
Hi, I am wondering if it is how good gcc is in optimizing giant if..else
statements for cases where using switch..case doesn't work. I mean really 
huge. example....

	void	*a = functionA;

	if(a == memcpy)
	else if(a == memmove) ...
	else if(a == strcpy) ...
	....
	else if(a == printf) ...;

I could probably try it out but I don't want to spend a few hours doing
something not worth doing. If it is worth doing, what are the conditions? 

THanks! :)

Hasdi

	
Technical Details
Message-ID: <4g80jp$nl6@srvr1.engin.umich.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9d819d70d101456e,start
X-Google-Attributes: gid11318c,public
From: hasdi@news-server.engin.umich.edu (HASDI RODZMANN HASHIM)
Subject: giant if..else optimization
Date: 1996/02/18
Message-ID: <4g80jp$nl6@srvr1.engin.umich.edu>
X-Deja-AN: 139957011
organization: University of Michigan Engineering, Ann Arbor
newsgroups: gnu.gcc.help