Interfacing with assembly code

Rob Lyman z073074@students.niu.edu
Tue May 17 18:33:00 GMT 2005


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




More information about the Gcc-help mailing list