home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: chang.unx.sas.com!walker
- From: walker@chang.unx.sas.com (Doug Walker)
- Subject: Re: PPC compilers
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <DL8CHv.JCv@unx.sas.com>
- Date: Mon, 15 Jan 1996 16:01:07 GMT
- X-Nntp-Posting-Host: chang.unx.sas.com
- References: <john.hendrikx.40ka@grafix.xs4all.nl> <4cuhng$dmn@maureen.teleport.com> <jasonb.821247870@cs.uwa.edu.au> <4d359i$ii7$1@sydney.DIALix.oz.au>
- Organization: SAS Institute Inc.
-
- In article <4d359i$ii7$1@sydney.DIALix.oz.au>,
- Troy Till <accolyte@sydney.DIALix.oz.au> wrote:
- >Bear with me here, 'cause I don't know the second thing about C..
- >
- >can you do something to the equivalent of:
- >
- > addx.l d0,d1
- > move.w d1,d2
- >
- >Which is treating d1 as a long word, then a word. How would you implement
- >this in C?
-
- register long a;
- register long b;
- register short c;
-
- c = a + b;
-
- The compiler realizes that the destination is a short, so it converts
- the long to short automatically.
-
- --
- ***** / walker@unx.sas.com
- *|_o_o|\\ Doug Walker< BIX, Portal: djwalker
- *|. o.| || \ AOL: weissblau
- | o |//
- ======
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-