flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > fasm and borland c

Author
Thread Post new topic Reply to topic
bpstoyanov



Joined: 26 Jun 2006
Posts: 1
bpstoyanov 26 Jun 2006, 08:10
I want to make dos-oriented lib in fasm and call it from borland c. help me with the frames of these two files.
Post 26 Jun 2006, 08:10
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 27 Jun 2006, 07:52
you would need FASM to produce OMF objects, which is the object file format that the Borland linker uses

I am afraid you are out luck - FASM can only produce COFF/PE/raw outputs

perhaps there is a coff2omf you can get?
Post 27 Jun 2006, 07:52
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 27 Jun 2006, 20:33
Yeah, Borland requires OBJ support, which NASM and LZASM support, but FASM does not.

Other than that, I can't help since I don't use Borland C.


Last edited by rugxulo on 28 Jun 2006, 22:10; edited 4 times in total
Post 27 Jun 2006, 20:33
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Jun 2006, 08:42
you can still include module as binary data and create your header to access it... somehow more dificult, but it is a solution.

Or maybe overlays could do it somehow, but i never used them
Post 28 Jun 2006, 08:42
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 15 Sep 2006, 00:02
The easiest way to link borland c code with fasm code is using dynamic linking (DLL's).
For static linking try to find a COFF2OMF.
Post 15 Sep 2006, 00:02
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 15 Sep 2006, 07:49
MSVC states it CAN link COFF too
Post 15 Sep 2006, 07:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 26 Apr 2008, 23:42
http://www.agner.org/optimize/?e=0#objconv
This utility can be used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms. Can also be used as a cross-platform library manager, a dump utility, and a powerful disassembler supporting the SSE4 and SSE5 instruction sets. Source code included (GPL).


Description: example how to do this, using a borland 5.5 compiler
Download
Filename: example.zip
Filesize: 1.92 KB
Downloaded: 759 Time(s)


_________________
regards
Post 26 Apr 2008, 23:42
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.