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,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9620bdab61f82e3b,start X-Google-Attributes: gid103376,public From: "Eddy Raineri" Subject: Rep specs Date: 1999/05/31 Message-ID: #1/1 X-Deja-AN: 484090614 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@home.net X-Trace: news1.rdc2.tx.home.com 928162585 24.7.108.79 (Mon, 31 May 1999 07:56:25 PDT) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Mon, 31 May 1999 07:56:25 PDT Newsgroups: comp.lang.ada Date: 1999-05-31T00:00:00+00:00 List-Id: Hello, I have a question regarding rep specs. There is an individual I work with that has stated that rep specs are not required by the LRM and as I qoute "DO NOT USE ADA REP SPECS except in the simplest of cases, or unless you are sure that the code will NEVER be ported to a different machine or compiler (hah!)" I had a totally different opinion. So I have the following questions. 1) I was under the impression that it was. It is in chapter 13 and not an annex. Is it required? 2) I was also thought that using rep specs is ideal for dealing with porting issues and cross platform communications. I.E. if a 32 bit PC was talking to an 8 bit microcontroller via a serial line. Is this correct? 3) I also thought that by using rep specs you may not be optimizing the code correctly for the platform but you are assuring that it will port correctly to another compiler/platform without any heartburn. 4) I also beleived that using pragm pack and rep spec will allow you to correctly access hardware registers correctly without using complex bit manipulation techniques or extra code. Thanks in advance for you help E. Raineri