News:

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

Preventing MASM From Decorating My Proc Names

Started by msqweasm, June 02, 2011, 12:54:40 PM

Previous topic - Next topic

msqweasm

I am using the compiler generated asm files as the starting point for further editing.  But the compiler generated proc names are all decorated names and it seems that MASM would further carry out its own name decoration.  Can I prevent MASM from doing this duplicated name decoration?

I want to have the compiler generates the asm files.  I'll then edit it myself and generate another separate obj module for the related functions.  I'll not touch the proc names to "undecorate" them.  Then my C++ functions will link to my new customized obj file assembled by MASM having function names in decorated form generated by the compiler.  But my last step would fail if the MASM carry out another name decoration.

hutch--

Bothy ML and CL will decorate names with the right calling convention so you are probably stuck with editing the leading underscore out of the file you want to build with ML.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi msqweasm,

You can use Agner Fog's Object file converter to undecorate function names in your object modules :

http://agner.org/optimize/objconv.zip

The MS COFF object file undecorator does a similar job.