home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!think.com!spool.mu.edu!yale.edu!newsserver.jvnc.net!gmd.de!strobl
- From: strobl@gmd.de (Wolfgang Strobl)
- Subject: Re: Porting Win 3.1 apps to NT
- Message-ID: <strobl.728087617@gmd.de>
- Keywords: porting
- Sender: news@gmd.de (USENET News)
- Nntp-Posting-Host: gmdzi
- Organization: GMD, Sankt Augustin, Germany
- References: <jbg.728078654@qualcom>
- Date: Tue, 26 Jan 1993 22:33:37 GMT
- Lines: 44
-
- In <jbg.728078654@qualcom> jbg@qualcom.qualcomm.com (Jeff Gehlhaar) writes:
-
- >I have a Win 3.1 compliant program, and am exploring the possibility of
- >porting it to NT. I am a little unclear about how difficult and/or
- >benefitial this will be to me.
-
- This depends of course on the program you try to port.
-
- >My current application (16-bit win 3.1) runs rather poorly in NT.
-
- In what way?
-
- >Since
- >it uses the 3.1 API, if I were to recompile it under NT, would I have
- >a noticeable performance increase,
-
- Compared to what? If you compare it to the same application running
- under Windows 3.1/DOS, you'll only see a performance increase if
- the program does a lot of 32-bit arithmetic and/or pointer manipulation
- using large or huge pointers. I wouldn't expect a performance increase
- for ordinary small memory model Windows programs.
-
- If you compare it to the speed of the Windows 3.1/DOS program
- running under the WIN-16 subsystem in NT, you'll certainly
- will see a speed increase, because the latter suffers from the
- thunking and emulation overhead, while the native app does not.
-
- >or must the 3.1 API calls be replaced by
- >NT equivalents to achieve the gain?
-
- Generally, no. THe WIN32 API is a superset of the Windows 3.1
- API, enlarged to 32 bits. If the old Windows API fits your needs
- (i.e. if you didn't have the necessity or desire to implement
- your own multi-threading or memory management, for example), there
- is usually no need to change the program in any way. Just clean
- up the few places where the 16-32 bit widening enforced minor
- changes in the API definition (there is a tool to help you
- spot such places in your program) and recompile it.
-
- --
- o ( Wolfgang Strobl Wolfgang.Strobl@gmd.de (+49 2241) 14-2394
- /\ * GMD - Gesellschaft fuer Mathematik und Datenverarbeitung mbH
- _`\ `_<=== Schloss Birlinghoven, P.O. Box 1316, | #include
- __(_)/_(_)___.-._ W-5205 Sankt Augustin, Germany | <std.disclaimer.hpp>
-