The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: daluca on January 31, 2009, 07:28:18 PM

Title: how to remove underscore and @
Post by: daluca on January 31, 2009, 07:28:18 PM
hello:
      can any one tell me if there is a way to use the proc keyword with the stdcall calling convention
      but instructing masm not to generate a decorated name,  so the *.obj file
      contains the name without the underscore and the @(number of bytes to remove)
     
     so if my proc is:

     myproc proc arg1:DWORD

     the name would be simply:
          myproc
     and not:
         _myproc@4


thanks
Title: Re: how to remove underscore and @
Post by: Vortex on January 31, 2009, 08:17:38 PM
Welcome to the forum.

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

http://agner.org/optimize/objconv.zip
Title: Re: how to remove underscore and @
Post by: Vortex on February 03, 2009, 06:22:35 PM
The MS COFF object file undecorator (http://www.masm32.com/board/index.php?topic=6518.0) does the same job.