Menu

linking TASM object files ?

zc0rn
2004-11-16
2012-09-26
  • zc0rn

    zc0rn - 2004-11-16

    Hi there :)

    Is it possible to link a TASM object file (I expect it to be OMF) to my DEV-C++ project ?

    If you know a good tool to convert from omf2coff, please tell me.

    Thanx and greetz,
    Ole L.

     
    • zeusosc

      zeusosc - 2007-04-04

      Yes, so far i know it is possible, but there is no need for it, cause gcc has alrady an own assembler, as(.exe for windows) in the bin directory,..
      you are able to write and assemble .S or .asm files to .o -.obj's and link them further with other object files written in c or c++. Take care if you use c++ u should implement the asm functions as follow:

      test.h

      extern "C" void testasmfunc(char c);
      extern void or_use_the_secondtestfunc(char c) asm("or_use_the_secondtestfunc");

      test.asm

      .global testasmfunc
      .func testasmfunc
      testasmfunc:
      [...]
      .endfunc

      .global or_use_the_...
      [...]
      .endfunc

      [...]
      .end

      rgds

       

Log in to post a comment.