From: "Igor Shapiro" Newsgroups: comp.os.msdos.djgpp Subject: Re: far functions with GCC Date: Thu, 11 Jan 2001 12:37:42 +0400 Organization: IAC Samara-Internet, Ltd. Lines: 16 Message-ID: <93jr6f$1t89$1@berg.samara.net> References: NNTP-Posting-Host: usr-249.dial-up.kraft-s.ru X-Trace: berg.samara.net 979202064 62729 213.156.195.249 (11 Jan 2001 08:34:24 GMT) X-Complaints-To: usenet AT news-hub DOT samara DOT net NNTP-Posting-Date: Thu, 11 Jan 2001 08:34:24 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Please explain a bit more what do you need to accomplish with that > function, and why do you think it needs to be a far function. The The situation is as follows: I wrote a C++ program with Watcom, that loads external modules (lets call them drivers). The "driver" is written with GCC because it supports binary targets (maybe other compilers do support?). So the C++ program reads the driver into a new allocated segment. So when it calls a function from the driver it must do a far call. So the function must end by retf - isn't it? :-) So that's the problem... -- Best regards Shapiro Igor E-Mail: shapiroigor AT mail DOT ru ICQ #70376055