Say that I have two files main.o compiled from gcc and another file function.o compiled from MSVC; is it possible to generate an executable (by linking) from these files? Is this what BFS (binary file descriptor) library designed for? I mean can I use BFS to do this? If not, is there any way to do this?
Generate an executable from object files in different formats
187 Views Asked by kai At
1
There are 1 best solutions below
Related Questions in COMPILER-CONSTRUCTION
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- How do compilers store hundreds of variables in only a few registers?
- Where to patch back the information gathered during program analysis
- Assignment Insertion in ROSE compiler after AssignOp
- memory layout of a multiple-inherited object in C++
- How to use my written compiler to read files on web?
- a LEX program to identify keywords and convert it into uppercase
- Identifier terminal except certain keywords
- Calling Scala compiler's AST from Java
- Computing the FOLLOW() set of a grammar
- JavaCC and Unicode issue. Why \u696d cannot be managed in JavaCC although it belong to the range "\u4e00"-"\u9fff"
- Three-address code and symbol tables
- Delegate caching behavior changes in Roslyn
- Get delimiter in Irony
- Compiler Errors including initializer before '<' token
Related Questions in LINKER
- How can I use LD to place ARM reset vectors in a program segment
- Need help linking listview to an ArrayAdapter error: Cannot resolve method'SetListAdapter(android.widget.ArrayAdapter<java.lang.String>)'
- Duplicate Symbols with a static library - understand the duplicate symbol error message
- Linker Script Symbols
- How to disable linker relaxation during linking phase of GCC LD?
- Adding Armadillo to Qt project
- Specify a minimum starting address for text segment
- in Makefiles, how to test for gcc's --with-ld option?
- What is the IAR equiavlent of the gcc linker NOLOAD directive?
- Embed Python2 and Python3 interpreters, choose which one to use at runtime
- Turning a statically linked library into a dynamic one
- 'The command line is too long' when linking .obj files in Windows command prompt
- Makefiile with many flags
- Linker errors for OpenBlas (+Armadillo)
- visual studio cannot resolve static functions
Related Questions in EXECUTABLE
- Do executable files always open a terminal window on MacOS?
- executables = executables python error (trying to turn pygame into executable with cx_freeze)
- Query, if a heap is executable
- How to create .exe from python script with modules and dependent files
- Converting a Shell Script Into a *.app File
- Is It Possible To Create a .jar File That Runs An Existing .bat File?
- How can I write a script to use an application
- which is pelican executable script that user executes from shell?
- JavaFX executable JAR runs into problems with loading FXML file, why isn't the FXML being loaded?
- Nothing happens when executing a python shebang script in /usr/local/bin/
- How to launch this program from the command line?
- Running executable files using Haskell
- How to change the working directory of a bundled Java program
- Turning Cython code into an executable "Python.h: no such file or directory
- Pascal: change TProcess description?
Related Questions in BFD
- Store and retrieve version information in ELF file
- Generate an executable from object files in different formats
- getting virtual memory address(vma) of linker symbols
- BFD unknown command when using gaddr2line
- Adding bfd peers using python
- Is there some equivalent of GNU Binary File Descriptor (BFD) for Windows .lib files?
- How to translate an lib build with g++ 2.96 to new BFD format?
- How to relocate the bfd size symbols?
- Make BFD library find the location of a class member function
- Problem when compiling program using libbfd (bfd library)
- How to retrieve flat binary from an executable file in C
- gdb fails on mountain lion
- libbfd: Write COFF object with AMD64 machine type
- Recover location information from trace using bfd
- Updating an object file using BFD interface
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Perhaps.
C++code produced by different compilers is not link compatible, butCcode usually is (at least on UNIX). On Windows, it may or may not be possible. At a minimum, you should tell us which versions ofMSVCandgccyou used to build the objects.You probably mean the
BFDlibrary. No, that's not what it is for.