From: Samuel Tardieu <sam@ada.eu.org>
Subject: Re: Low Level IO
Date: 1998/08/06
Date: 1998-08-06T00:00:00+00:00 [thread overview]
Message-ID: <m390l2ujqi.fsf@zaphod.enst.fr> (raw)
In-Reply-To: 6qclfg$dpt$2@talia.mad.ibernet.es
>>>>> "Jose" == JOSE VICENTE <319089@cepsz.unizar.es> writes:
Jose> Does anyone know how can I read/write the parallel port using
Jose> Linux and Gnat 3.10 ?
It has nothing to do with GNAT. If you try the same thing in C with
main() { *(char *)0x3bc = 0; }
you will get a segmentation fault.
When you are using a real OS (such as Linux), you have to ask the OS
to give you certain permissions (on Linux, look at ioperm() and iopl()).
Moreover, the memory space you see has nothing to do with the physical
memory, that means that 16#3bc# doesn't point onto the parallel port.
Sam
--
Samuel Tardieu -- sam@ada.eu.org
next prev parent reply other threads:[~1998-08-06 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-06 0:00 Low Level IO JOSE VICENTE
1998-08-06 0:00 ` Samuel Tardieu [this message]
1998-08-06 0:00 ` JOSE VICENTE
1998-08-07 0:00 ` Tarjei Tj�stheim Jensen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox