comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <lanceboyle@qwest.net>
Subject: Re: Ada and linux: pragma import how to
Date: Fri, 1 Oct 2010 16:04:58 -0700 (PDT)
Date: 2010-10-01T16:04:58-07:00	[thread overview]
Message-ID: <a939582e-eaff-408e-8ec7-9030836c5142@q16g2000prf.googlegroups.com> (raw)
In-Reply-To: d49bea50-f032-40bc-8c8c-04c4f54954d6@z28g2000yqh.googlegroups.com

On Oct 1, 1:34 pm, Francesco PIRANEO GIULIANO
<liste.fpira...@gmail.com> wrote:
> Gentleman,
>
> for an application that want to drive the linux framebuffer I'm trying
> to import the open and ioctl C functions to be used with Ada.
>
> I'm quite new in that language so I need some detailed information on
> how to pass and retrieve arguments / results from imported functions /
> procedures and well understand differences between import function and
> import _valued_ function.
>
> Can you provide me some documentation source about these two topics?
> Does anyone can provide me books reference about using Ada with Linux?
> I've found the "Big book of linux ada programming" and obviously the
> Ada reference manual but I need something with a more practical
> approach to understand...
>
> Thank you very much!
> Francesco

If you are using GNAT, see the GNAT User's Guide

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/index.html#Top

specifically

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Mixed-Language-Programming.html#Mixed-Language-Programming

or even

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Generating-Ada-Bindings-for-C-and-C_002b_002b-headers.html#Generating-Ada-Bindings-for-C-and-C_002b_002b-headers

Jerry



      reply	other threads:[~2010-10-01 23:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 20:34 Ada and linux: pragma import how to Francesco PIRANEO GIULIANO
2010-10-01 23:04 ` Jerry [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox