Object files

D

djake

Why does a Win compiler like cl.exe can be able to create all the
object files only by passing the main source, while in Unix I have to
specify every object to be compiled?
 
V

Victor Bazarov

djake said:
Why does a Win compiler like cl.exe can be able to create all the
object files only by passing the main source, while in Unix I have to
specify every object to be compiled?

Huh? I believe you're basing your question on the wrong premise that
"a Win compiler" creates all the object files by passing "the main
source" (whatever you mean by that).

Aside from minor differences in the way they handle source files, all
compilers are pretty much the same, they process (translate) modules
one by one and convert them into object modules (which are later
linked into a library or an executable). 'cl.exe' (I believe you
mean the Visual Studio compiler driver) is really no different.

If you need to know more about a particular compiler, please consider
posting to the newsgroup dedicated to that compiler.

V
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Why does a Win compiler like cl.exe can be able to create all the
object files only by passing the main source, while in Unix I have to
specify every object to be compiled?

Because cl.exe has the equivalent of make built-in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top