[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interfacing with assembly code
From: |
Rob Lyman |
Subject: |
Interfacing with assembly code |
Date: |
Tue, 17 May 2005 13:26:28 -0500 |
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
- Interfacing with assembly code,
Rob Lyman <=