answersLogoWhite

0

When is an object file in c used?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

When you write a compiler, assembler or linker in C.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Why program consists more than one object file in c?

why does a program consists of more than one object file in c++


What are the file created after c file is save?

Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)


Which word menu item could be used to insert an Excel spreadsheet in Word?

The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.


What is persistent object in c plus plus?

A persistent object is an object that retains its value between two different executions of the program that uses it. This means that some kind of disk file is used to store and load the object, using a method of the object, such as "serialize", to do so.


How could you insert or call the OBJ file in c source code?

You will need to define any functions used as "external", then when you link the object code you will make sure that the object file with the function is included in the link command. Then you just call the function as though it were local.


Which method of object output streme class can be used to write the cotents of an object to a file?

write object


What is a scatter file in c or c plus plus programming?

Scatter File is a linker script file used by RVCT/Keil for ARM processors. It is used by arm linker.


Which program produces the obj file assembly or C plus plus?

A compiler produces object code, which is an obj file.


What is an explanation of the file modes briefly?

Two file modes are "text" and "binary". Text is used for human readable data, such as a C source file, or a notepad text file. Binary is used for computer readable data, such as an executable object file. Two other file modes are "sequential" and "random". Sequential is used when the file is accessed serially, from the beginning to the end, and can be used for both text and binary files. Random is used when the file is accessed non-serially, often jumping around from place to place. An example of random is a database file.


Which file is good in performance c file or lib?

C sources and object-libraries don't actually do anything, so there is no point in comparing their performance. (In other words: your question makes no sense.)


How do you link one C source file in another?

Linking means combining object modules and libraries into an executable file. The details are platform-dependent.


What is the difference between an executable file and a .class file?

Both are binary files but the differences between those are:- 1) we can execute an executable file while we cannot execute an object file. 2) An object file is a file where compiler has not yet linked to the libraries, so you get an object file just before linking to the libraries, so still some of the symbols or function definitions are not yet resolved which are actually present in the libraries, and that's why we cannot execute it. Once an object file is linked with the library by the compiler, then all the symbols are resolved and we get an executable file which can be executed on the appropriate platform. So basically the difference is that we get an object file when we don't link with library while executable file is with the linking phase. In gcc we can direct compiler not to link with library and so it will prepare the object file :- gcc -c test.c It will automatically create test.o object file when you try to execute it like:- ./test.o cannot execute binary file