> -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Bob Barr > Sent: Friday, February 15, 2002 11:00 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Basic question about macros > > > On Fri, 15 Feb 2002 10:24:09 -0500, Herbert Graf wrote: > > >I think the biggest reason is code space. With a subroutine there is only > >one instance of that subroutine in the code, all calls to it > branch to that > >address. With a macro you are using something called 'inline code', every > >time you "call" the macro a copy of that code gets added, so 20 > "calls" to > >the macro, 20 copies of that code. > > Minor nit to pick - Subroutines get called, macros get invoked. Using > the term "call" when talking about macros muddies the distinction > between macros and subroutines. I agree, that's why I wrote "call" instead of just call. TTYL -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu