This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Interfacing with assembly code
- From: "Rob Lyman" <z073074 at students dot niu dot edu>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 17 May 2005 13:26:28 -0500
- Subject: Interfacing with assembly code
I am using gcc package and want to combine C code with assembler. Although
I am aware that gcc can in fact assemble code, I am rather set in my ways
and am more comfortable assembling code with NASM. So my questions are two:
1) Why would the gcc linker be unable to find a symbol called "readTSC" in
an ELF file generated by NASM? I am properly exporting the symbol name,
according to the NASM docs. (I also tried exporting it as "_readTSC".)
2) Is the gcc compiler capable of generating an object file in Intel OMF/OBJ
format? What command line options are required to invoke this?
Thanx for your help....
WaveformDelta