c++ - Are object files platform independent? -


Is it possible to compile the program on a forum and link it to others? What is included in the object file? Can we delete the executable to create an object file?

No common object file can be similar in format, e.g. The ALF, but the contents of the object file may differ in the system from the system.

An object file is similar to the stuff:

  Object code applied to the desired functionality is a symbol table that can be used to resolve the reinstallation information The link code can be used to allow the object code to be detected in memory  

Object code is usually not only processor-specific, but OS is specific, for example For, etc. Summon system calls include


edit:

  Is it possible to compile a program on a forum and link it to others?  

Absolutely if you use cross-compiler, this compiler specifically targets a platform and generates object files (and programs) that are compatible with the target platform. Therefore you can use an X86 Linux system, for example, to create a program for a PowerPC or ARM based system using the appropriate cross compiler. I do


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -