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,XPRIO_SHORT_SUBJ autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78b2880bc7e78e39 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-17 01:38:52 PST Path: nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: RISC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Thu, 15 Mar 2001 12:37:05 -0000 NNTP-Posting-Host: 213.104.129.193 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 984659821 213.104.129.193 (Thu, 15 Mar 2001 12:37:01 GMT) NNTP-Posting-Date: Thu, 15 Mar 2001 12:37:01 GMT Organization: ntlworld News Service Xref: nntp.stanford.edu comp.lang.ada:91477 Date: 2001-03-15T12:37:05+00:00 List-Id: I'm curious about 'mod' types. If i define a type 'byte' like so * type byte is mod 256; will it occupy one byte of memory. similarly if i define * type word is mod 65536 will it occupy two bytes. This is important for IO and for memory in the simulation. Is it compiler dependant? I'm using GNAT 3.13p just in case this is so. As i was writing i suddenly realised i got a problem with little/big endian-ness. I'm writing files on an Athlon(so it's x86) which is little(i think). If i port to a M68000 say, which is big endian (again i'm unsure), what should i do to convert the 'bytecode' file. I dunno what to do with this. I do plan to port to other platforms in the future so this is important. Is it true that all networks use big endian? Anyway this is for the future, just thought i'd ask in case i need to plan ahead for this. Chris Campbell