Intel Corporation interview question

When to use a macro vs. a function?

Interview Answer

Anonymous

21 Jan 2021

Macros should be used to replace small functions in order to not use the stack unless absolutely necessary, however they present difficulties when debugging.