Mail Archives: djgpp/1997/02/28/22:54:32
On Sat, 22 Feb 1997 16:09:01 +0100, Wojciech Galazka
<wgalazka AT chem DOT uw DOT edu DOT pl> 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
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>
- Raw text -