This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]