News:

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

Process ID examples, asm and C.

Started by hutch--, August 21, 2007, 12:23:47 PM

Previous topic - Next topic

hutch--

I found a simple piece of C code in the SDK I have for win2000 so I copied it and built in with the VCTOOLKIT with a result of about 36k. It was an easy port to MASM so I converted it and it builds at 2.5k. YES there is a reason to build code in MASM.  :bg

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi Hutch,

Nice example :U

Here is the project compiled with PellesC. With the support of external asm routines replacing the standard C run-time startup module, the size of the C executable is 2560 bytes.

[attachment deleted by admin]

hutch--

Thanks for the example Erol, it was useful to further tweak the Microsoft C example from the SDK. I included msvcrt.lib fom masm32 and set the entry point to "main" while merging rdata into the code section and it builds at 1.5k. With a bit of tweaking the MASM version that appends its own strings and displays them came out at 2k.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php