Interfacing with assembly code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux