TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Stacy Smith
from: David Noon
date: 1994-08-03 21:29:00
subject: Thunking, I Think...

On Monday, 1994-08-01  Stacy Smith wrote to David Noon about
"Thunking, I Think..." as follows:

Hi Stacy,

SS> Thanks for the detailed explanation!

You're welcome.

SS> DN| there are 2 API calls, DosFlatToSel() and DosSelToFlat(), that will
SS>   | allow you to convert pointers almost-manually; note that these API
SS>   | calls use Optlink calling convention.
SS> 
SS> Ummm..."Optlink calling convention"?  What would that be?

The Optlink calling convention passes parameters in registers instead
of on the stack. It is faster than the system calling convention that
is used by most API calls. The C Set ++ compiler use Optlink by
default; the APIENTRY macro provides the override for the other API
calls. You can also use this linkage from IBM PL/I for OS/2, Watcom
C/C++ and (I believe) Metaware High C/C++ for OS/2; Borland C/C++ for
OS/2 is a bit of a crap shoot, since their _Fastcall linkage is the
nearest they offer.

Regards

Dave

___
 X KWQ/2 1.2e X Is Mike Tyson going to have O.J. for breakfast soon?

--- Maximus/2 2.01wb

* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 109/347 2 1 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.