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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1048aea26a740e29 X-Google-Attributes: gid103376,public From: "Vladimir Olensky" Subject: Re: Bit operators & asm in Ada (novice question) Date: 2000/02/13 Message-ID: #1/1 X-Deja-AN: 585316132 References: <884o85$jjv$1@news.fsu.edu> <48np4.505$e6.7474@newsread1.prod.itd.earthlink.net> <38A624B3.5709A464@interact.net.au> Organization: Posted via Supernews, http://www.supernews.com X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.lang.ada X-Complaints-To: newsabuse@supernews.com Date: 2000-02-13T00:00:00+00:00 List-Id: G wrote in message <38A624B3.5709A464@interact.net.au>... >> Ada is a systems programming language, just like C/C++. Anything you >> can do in C, you can do in Ada. >> > > I have been reading the Art of Assembly. I was wondering how to do exactly >these sorts of operations in Ada > So -in Borland C++ I may actually write asm directly into code (not that I can yet), >but - is this possible in Ada ? Of course Yes. In Ada 95 there are two ways: 1. Machine code insertions - close to what could be done in C++ or Borland Delphi OP but little bit more complicated . 2. Use assembler (GAS or NASM or any other) to write what you need, compile it and than link it to your Ada program. Of course one need to write Ada interface (*.ads) to that Assembler code. The second way is very clean and simple. Regards, Vladimir Olensky