News:

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

Where is msvcrt

Started by ic2, June 13, 2005, 03:40:37 PM

Previous topic - Next topic

ic2

msvcrt.inc is not in masm32 v8.2.  Where do i find it.

Thanks in advance


ic2

I did my first search and found it a few min ago.

Thanks AeroASM

thomas_remkus

Wouldn't including the crt be sort of a hog? I thought that all of the crt functions were re-developed in asm and you could use them all with includes. Is this assumption wrong? I thought that all 700+ functions in the crt were recoded to asm and you could include them.

Some of the crt is really useful to a noob like me but I would like to force myself to no use the crt if possible. I presume that is easily possible.

thomas

MichaelW

A hog in what way? If you don't use any of the CRT functions then nothing related will be included in your program. AFAIK the MASM32 library does not specifically duplicate any part of the CRT. While there is some duplication in terms of functionality, both of the libraries provide functionality that is not duplicated in the other.
eschew obfuscation

hutch--

I have only recently added MSVCRT support to MASM32 as it took a different style of include to avoid various naming clashes. Its a useful and familiar set of functions for programmers with a C background and there is no reason to avoid them unless you can code faster ones which is certainly possible if you need it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

thomas_remkus

When I say "hog" I just mean ,"I am ignorant and would presume that using the crt would add huge overhead and be slow". I understand that if I don't use them then they won't be there, but I also thought that some of the functions would already be done in the MASM32 library so the crt would be redundant.

Since Hutch's crt work allows me to use 100% (from what it looks like) of that library, is there a contrast and comparison sheet function list with the masm32 library? I would like to use the masm32 set first but if it's not there and the crt has it then I'll use that. I have a crt function list but nothing for MASM32 library for what I know. Can someone direct me to a list?

thomas

hutch--

thomas,

Yea, the help file that comes with it, MASMLIB.HLP.  :bg  It won't help you with the comparisons but it does document the library procedures and the m32lib directory also has the full source of the library.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

thomas_remkus

I feel like I am getting a mixed message, hutch. You stated in "http://www.masmforum.com/simple/index.php?topic=1082.0" that you would avoid the runtimes like the plauge. Can you clear this up?

Thanks for pointing me at the .hlp !!

thomas

hutch--

tomas,

The term "runtime" is a bit ambiguous here, a standard build in VC sucks in enough runtime library support to build a bare exe at about 28k yet when you exclude the default runtime library and set the entry point to "main" or similar, it builds at 1.5 to 2k.

Now the MSVCRT library is a reliable system DLL these days and its no different to any other "known" dll but it does provide a very large range of functions that are familiar to experienced C programmers. There is no rule anywhere as to what functionality you use and if the VC runtime DLL does the job, use it but of course don't limit yourself to it or anything else as you don't have to.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

thomas_remkus

That does clear things up. Thanks!

hutch--

I should have added that Jibz has a very smart replacement for the standard runtime library that is called WCRT.LIB. This URL is from memory but I think its www.ibsensoftware.com and you can download the runtime from there if you want to build C programs with that type of support.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

thomas_remkus

That might not have been the right page ... I think I found what you are talking about at "http://wcrt.sourceforge.net/doc/index.html".


hutch--

No, thats a different version again but I tested the link for Jibz's site and it works fine.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php