Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!plx!plxsun!johnc From: johnc@plxsun.uucp (John Ciccarelli) Newsgroups: comp.windows.ms.programmer Subject: Re: MS-C 286-code in Windows' real mode Summary: Compile the non-286 code separately Keywords: G2 switch Message-ID: <2550@plx.UUCP> Date: 9 Jan 91 23:12:43 GMT References: <915@tuura.UUCP> Sender: usenet@plx.UUCP Reply-To: sun!plx!johnc (John Ciccarelli) Followup-To: comp.windows.ms.programmer Distribution: comp Organization: Plexus Software, Santa Clara, CA Lines: 15 Expires: Sender: In article <915@tuura.UUCP> risto@tuura.UUCP (Risto Lankinen) writes: > >The question is, how can I use the -G2 switch, but still be able to mark >a portion of the program such, that it would be compiled to 8086/88 ? > >Terveisin: Risto Lankinen Simple. Just put the 8086-specific code in separate module(s), compiled with 286 code generation turned off. You must be sure that no 286 code will execute before you issue the message box and terminate the app, of course. John Ciccarelli Plexus Software, 5200 Great America Pkwy, Suite 200, Santa Clara CA 95054 email: ...sun!plx!johnc, voice: 408-982-4842, fax: 408-727-4864