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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d6cfc4c1ab62ae75 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!easynet-monga!easynet.net!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada 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 Organization: Pushface Message-ID: References: <1119458002.204070.254050@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1119719197 6160 62.49.19.209 (25 Jun 2005 17:06:37 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 25 Jun 2005 17:06:37 +0000 (UTC) Cancel-Lock: sha1:OUAG4L1U/OKdl40+JcCYHsLK0Uw= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:11648 Date: 2005-06-25T18:06:43+01:00 List-Id: "Lud" 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!)