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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9ae3749ddf1e6022 X-Google-Attributes: gid103376,public From: Joseph Wisniewski Subject: Re: Endian and Ada Date: 1996/04/09 Message-ID: <4kfeai$oob@nnrp1.news.primenet.com>#1/1 X-Deja-AN: 146674671 sender: root@primenet.com references: <4kamb9$om2@flute.aix.calpoly.edu> <31697C7B.626D@mcs.com> organization: Primenet (602)395-1010 x-posted-by: wisniew@usr1.primenet.com newsgroups: comp.lang.ada Date: 1996-04-09T00:00:00+00:00 List-Id: Just an FYI. I'll check this in my stack of magazines, but I think I remember an article in Embedded Systems Programming about 2 years ago, that had _an_ example of how to rep-spec for "endian-independence". Joe Mike Young wrote: : Michael Anthony Porcelli wrote: : > : > I'm taking a computer architecture class and my eyes have been opened to the : > incredible lack of progress that computer science has made in the area of : > architecture-independant programming. One of the main problems that my : > professor likes to point out the endian problem and the fact that so much : > software is *not* endian-independant (due mainly to the widespread use of C : > and C++). However, he is not familiar enough with Ada (nor am I) to know if : > Ada is endian-independant. I'm almost positive that it's *possible* to make : > endian-dependant code using unchecked programming (necessary for systems : > writing). I was wondering, however, if the day-to-day Ada software out : > there is written endian-independant (i.e. the language facilities used in : > most day-to-day programming don't depend on whether your architecture is : > "big" endian or "little" endian.) : > : > Thanks, : > : > -Mike : =========== : Byte ordering becomes an issue when communicating across different : architectures, but is not normally a concern otherwise. I can think of : few languages, with assembler being a *possible* exception, where this : is an issue worthy of conscious thought. The question you might now ask : yourself (or your professor) is why byte-ordering should be a concern : for programmers not involved in cross-platform programming issues, : regardless of programming language. : Mike. -- Joe Wisniewski Commercial Software Solutions, Ltd. -- Embedded/RT SW Consulting Co-Author: Program Smarter, Not Harder - Get Mission Critical Projects Right the First Time ISBN 0-07-021232-5 wisniew@primenet.com --- The "Baltimore Browns"? Pazhaloosta! Ada95 --> She'll take you to places you never thought possible!