Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!polygen!jerry From: jerry@polygen.uucp (Jerry Sheckel) Newsgroups: comp.windows.ms.programmer Subject: Re: MS-C 286-code in Windows' real mode Message-ID: <950@stewart.UUCP> Date: 14 Jan 91 19:47:59 GMT References: <915@tuura.UUCP> Reply-To: jerry@stewart.UUCP (Jerry Sheckel) Distribution: comp Organization: Polygen Corporation, Waltham, MA Lines: 18 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? > Why not just put the code which may run in real mode [the start-up code and the call to GetWinFlags()] into a separate file, and compile only that file without the -G2 flag? -- +-------------------+----------------------+---------------------------------+ | JERRY J. SHEKHEL | POLYGEN CORPORATION | When I was young, I had to walk | | Drummers do it... | Waltham, MA USA | to school and back every day -- | | ... In rhythm! | (617) 890-2175 | 20 miles, uphill both ways. | +-------------------+----------------------+---------------------------------+ | ...! [ princeton mit-eddie bu sunne ] !polygen!jerry | | jerry@polygen.com | +----------------------------------------------------------------------------+