Page 1 of 1

macros vs. function calls

PostPosted: Oct 5, 2004 @ 2:20am
by Hand of Fate
I was curious. Macros vs. functions. Using macros would substitute the macro string possibly many times, so this would create much larger code than using a single function call? So would this make macros instead of using a function a disadvantage when it comes to memory usage because the memory usage for the program would be bigger w/macros?

PostPosted: Oct 5, 2004 @ 2:28am
by Kzinti

PostPosted: Oct 5, 2004 @ 3:09am
by fast_rx
I just read an article over at codeproject the other day about inline functions vs. macros. Take a look:

http://www.codeproject.com/cpp/Macros_vs_Inlines.asp

PostPosted: Oct 5, 2004 @ 3:37am
by mlepage

PostPosted: Oct 5, 2004 @ 3:41am
by Kzinti

PostPosted: Oct 5, 2004 @ 4:10am
by Hand of Fate