From: Tom St Denis Newsgroups: comp.os.msdos.djgpp Subject: Re: far functions with GCC Date: Thu, 11 Jan 2001 03:56:10 GMT Organization: Deja.com Lines: 24 Message-ID: <93jaso$5qo$1@nnrp1.deja.com> References: <93ie7g$17lu$1 AT berg DOT samara DOT net> NNTP-Posting-Host: 24.156.37.224 X-Article-Creation-Date: Thu Jan 11 03:56:10 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 5.01 [en] X-Http-Proxy: 1.1 x58.deja.com:80 (Squid/1.1.22) for client 24.156.37.224 X-MyDeja-Info: XMYDJUIDtomstdenis To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <93ie7g$17lu$1 AT berg DOT samara DOT net>, "Igor Shapiro" wrote: > Hi! > How can i define with gcc a far function (that ends with retf)? Is there > a way to do this? > > P.S. Yes, I really need FAR function in protected mode. Not that I am aware of. FAR is not a ANSI C token. You may have to just make a "thunk" layer... i.e 1. Make your code in NASM with retf 2. Make a C callable function that far calls your function. Then call your C callable function. Tom -- Thunk layer is something I got from an old Windows Programming Journal about 16/32 bit cross development. Sent via Deja.com http://www.deja.com/