Question: Consider a language like Ada or Modula-2, in which a module M can be divided into a specification (header) file and an implementation (body) file

Consider a language like Ada or Modula-2, in which a module M can be divided into a specification (header) file and an implementation (body) file for the purpose of separate compilation. Should M’s specification itself be separately compiled, or should the compiler simply read it in the process of compiling M’s body and the bodies of other modules that use abstractions defined in M? If the specification is compiled, what should the output consist of?

Step by Step Solution

3.35 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

There is a simple tradeoff here between execution speed and comple... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Language Pragmatics Questions!