Subroutine vs Macro - What's the difference?
subroutine | macro |
(computer science) A section of code, called by the main body of a program, that implements a task.
Very large in scope or scale.
(programming, computing) A comparatively human-friendly abbreviation of complicated input to a computer program.
As nouns the difference between subroutine and macro
is that subroutine is (computer science) a section of code, called by the main body of a program, that implements a task while macro is (programming|computing) a comparatively human-friendly abbreviation of complicated input to a computer program or macro can be (photography) macro lens.As an adjective macro is
very large in scope or scale.subroutine
English
Noun
(wikipedia subroutine) (en noun)macro
English
Etymology 1
1933, from .Adjective
(-)Etymology 2
1959, shortened form of macroinstruction.Noun
(en noun)- The pre-processor expands any embedded macro s into source code before it is compiled.