News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

resusing masm lib file in borland c++ compiler

Started by adekunleadekoya, October 30, 2008, 09:49:10 AM

Previous topic - Next topic

adekunleadekoya

i need a sample code that wraps masm function in a lib(library file) and a borland c++ code that resuses the masm generated lib file.  i will be glad to see all the command-line invocation so that i can see the basics(devoid of abstraction typical of masm IDE and Borland IDE) of compiling a masm library and linking it with a borland c++ program file.

hutch--

I don't know how successful this would be, Borland normally use OMF format object modules where Microsoft normaly use COFF. If you know a bit about MASM you can build an object module as an OMF format File but you would have to check if the Borland OMF format is the same.

If you have the code already, convert it to TASM as that produces the correct object module format for Borland C++.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi adekunleadekoya,

Agner Fog created a very useful tool converting object files between different formats :

QuoteObject file converter

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 modify symbol names in object files. Can build, modify and convert function libraries across platforms. Can dump object files and executable files. Also includes a very good disassembler supporting the SSE4, SSE5, AVX and FMA instruction sets. Source code included (GPL). Manual.

File name: objconv.zip, size: 672667, last modified: 2008-Sep-20.

http://agner.org/optimize