From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: Re: VxDs with DJGPP Date: Fri, 28 Feb 1997 23:40:32 GMT Message-ID: <331738da.4213658@news.demon.co.uk> References: <330F0C0D DOT 4761 AT chem DOT uw DOT edu DOT pl> NNTP-Posting-Host: abwillms.demon.co.uk Lines: 35 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Sat, 22 Feb 1997 16:09:01 +0100, Wojciech Galazka wrote: >Basically I don't know if it is possible to >write something like >#pragma segmentname("_LOCKED_DATA_") >in other words if it's possible to force the >C compiler to name data and code segments . >as we want not as the compiler wants It certainly is; you need to patch a bug in gcc that thinks it isn't, though. See http://www.abwillms.demon.co.uk/prog/ for more info; the patch's there, along with compiled versions of gcc with the bug fixed. Get libhw for examples of the syntax for forcing things into funny segments, or look it up in the gcc documentation. Note: it seems there may be a bug in libhw when kbd_passon is set to 1. I am investigating. It'd be helpful if people using libhw tried setting up the keyboard handler with kbd_passon = 1 and a while(getch()!=27); loop to accept keystrokes until escape is pressed, and tell me if it hangs. Thanx! ABW -- "Simply drag your mother in law's cellphone number from the Address Book to the Laser Satellite icon, and the Targeting Wizard will locate her. Then follow the onscreen prompts for gigawattage and dispersion pattern..." (Windows for Early Warning and Defence User's manual P385) Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk Hello :-)