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,982f13b809cc2afa X-Google-Attributes: gid103376,public From: samw@wwa.com (Samuel G. Williams) Subject: Re: Need GNAT Help !!!!! Date: 1998/08/20 Message-ID: <6ri2b6$g9o$1@hirame.wwa.com>#1/1 X-Deja-AN: 383134813 References: <6ra6bc$8mv$1@hirame.wwa.com> <6rc3fh$656$1@nnrp1.dejanews.com> Organization: WorldWide Access - Midwestern Internet Services - www.wwa.com Newsgroups: comp.lang.ada Date: 1998-08-20T00:00:00+00:00 List-Id: What we are attempting to do now because of the way in which the code was written is leave integer as a universal value and change the actual size of the integer within the gnat environment. I know this sounds hokie, but the end application is written only for an embedded 80186 and this is a pilot use of gnat. If this works things will be changed to the more normal method of creating special data types for our applications. Our problem should have beeb realized up front, but unfortunately it wasn't. By the way, this is for a special lab application and not one that will be flying in the next Boeing release. You also mentioned something about the byte ordering differences betwwen sparc and 80186. do you know of any reference documentation that illustrates this. I really appreciate all help and comments I have received. Any additional will be greatly appreciated. Sam Williams sgwilliams@snds.com samw@wwa.com samw@sinnfree.org dennison@telepath.com wrote: : In article <6ra6bc$8mv$1@hirame.wwa.com>, : samw@wwa.com (Samuel G. Williams) wrote: : > I have been helping a software engineer in another area of out company draft : an ADA solution for : > an extremely complex problem. Recently we have run into a problem on the : processor we have : > targeted for the application. Our suspicions are that we may have a type : incompatability between : > the Sun we are developing on and the x186 that we have targeted. : : Hmmm. Remember that these two platforms have a different byte-ordering too : (assuming you are using a SPARC-based Sun). : : > Does anyone know how to change a type size under GNAT? We have looked at all : the files that come : : No need to muck with the compiler internals. You can define your own versions : of all the base types that have the sizes you desire. That is, in fact, what : you *should* be doing if you want your objects to be the same size on multiple : platforms. : : That won't of course solve your 'endian problem... : : : T.E.D. : : -----== Posted via Deja News, The Leader in Internet Discussion ==----- : http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum -- Sam Williams wb5yni samw@wwa.com Systems Programmer Staff Specialist samw@sinnfree.org --------------------------------------------------------------------------- simplicity is the ultimate form of sophistication.... Leonardo Da Vinci