Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!visix!ip2020!adamksh From: adam@visix.com Newsgroups: comp.lang.c Subject: Should I use macros to inline code? Message-ID: <1991Mar27.024602.21399@visix.com> Date: 27 Mar 91 02:46:02 GMT Sender: news@visix.com Reply-To: adam@visix.com Organization: Visix Software Inc., Reston, VA Lines: 22 Hi, a quick question -- Given today's C compilers, is there any reason at all to explicitly inline code with macros? The only thing I could think of was there might be cases where you want explicit control of the space/time tradeoff (but surely the benefit is small). Assuming that's useful, is there any use for subroutines, so that a routine is only inlined once per function? (I.e. would this be a useful third choice on the space/time tradeoff?) (surely this benefit is even smaller). (Actually, I don't see any way to pass arguments to and return from subroutines that would make them useful in C.) Thanks much, Adam adam@visix.com