comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: How to get a a hello program written in ADA to run when VxWorks is started?
Date: Sat, 25 Jun 2005 18:06:43 +0100
Date: 2005-06-25T18:06:43+01:00	[thread overview]
Message-ID: <m2is02z7q4.fsf@grendel.local> (raw)
In-Reply-To: 1119458002.204070.254050@z14g2000cwz.googlegroups.com

"Lud" <ludvigs.vaivarins@lmco.com> writes:

> Looking for how to have a program like hello written in ADA (using the
> GANT compiler supplied by ADA Core)to be loaded and run automatically
> when VxWorks is booted up. The help in VxWorks sates that the module
> usrAppInit.c is to be updated.

I thought this was one of the examples in the GNATpro documentation
for VxWorks?

I'd be surprised if you have this compiler without support, ask
AdaCore, it's what you're paying them for and they will tell you the
real answer not the following half-remembered hints ..

Assuming you mean you want to make a bootable project which includes
an Ada program (let's assume it is hello.adb!) the steps are, roughly,

* compile and link hello.exe (weird, I know, should be hello.out)
  using something like

    powerpc-wrs-vxworks-gnatmake -nostdlib hello

* modify usrAppInit.c to call hello()

* modify the linker section of the Tornado project so it includes
  hello.exe and the necessary parts of the GCC runtime (some bits are
  left out of the standard Tornado link libraries, sorry, the details
  escape me!)



      parent reply	other threads:[~2005-06-25 17:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 16:33 How to get a a hello program written in ADA to run when VxWorks is started? Lud
2005-06-22 20:04 ` REH
2005-06-25 17:06 ` Simon Wright [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