structure and array and string c - (nf)

davy at ecn-ee.UUCP davy at ecn-ee.UUCP
Wed Mar 28 08:20:55 AEST 1984


#R:sdchema:-109700:ecn-ee:13100010:000:542
ecn-ee!davy    Mar 27 08:25:00 1984

In-line assembler functions are a nifty idea, and probably wouldn't
be that bad to implement (maybe they already have been?).  I've 
never seen the Berkeley sed scripts you describe which do this stuff,
but I have seen:


	foo(x, y, z)
	{
	#ifdef vax
		asm("assembly language version of the routine");
	#else
		C version of the routine
	#endif
	}

Seems to me this oughta be good enough for most people....it's kinda
ugly, but how often do you really want to go down into assembly language
for more than one or two statements?

--Dave Curry



More information about the Comp.lang.c mailing list