TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Stacy Smith
from: Bob Liles
date: 1994-07-18 09:37:00
subject: Thunking, I Think...

SS>Can I ask a stupid question as a newbie to OS/2 programming?  (Gee, maybe
SS>I should buy a book ).  What is "thunking"?  I've
programmed for DOS
SS>for quite awhile, but never heard the term until I started reading this
SS>area...thanks!

If you are writing a program using 16 bit segments (offset:segment
addressing) and you need to call a routine in one of the 32 bit (flat
addressing) segments, OS/2 has to convert any addresses from 16 bit to
32 bit before calling the 32 bit segment.  The reverse is also true.  If
you are writing the program using a 32 bit segment and call one of the
(few) 16 bit OS/2 functions, the 32 bit addresses must be converted to
16 bits before the call proceeds.  This 16:32 bit conversion is called
thunking.  It is what allows a 32 bit operating system like OS/2 to run
16 bit software like all of the DOS programs you are used to.
___
 * MR/2 2.0 #99 * Internet: XTJX59A{at}PRODIGY.COM   RIME: ->7   Prodigy: XTJX59A

--- QScan v1.067b

* Origin: The Party Line * Memphis * (901) 755-4531/DS (1:123/5)
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: 123/5 4 301 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™.