From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,70b2e2ff07dcf078 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Low Level IO Date: 1998/08/06 Message-ID: #1/1 X-Deja-AN: 378562451 References: <6qclfg$dpt$2@talia.mad.ibernet.es> Mail-Copies-To: sam@ada.eu.org Content-Type: text/plain; charset=US-ASCII Organization: TELECOM Paris Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.lang.ada Date: 1998-08-06T00:00:00+00:00 List-Id: >>>>> "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