home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!adserv.enet.dec.com!winalski
- From: winalski@adserv.enet.dec.com (Paul S. Winalski)
- Subject: Re: VAXC divide problems (V3.2)
- Message-ID: <1993Jan22.182101.26645@e2big.mko.dec.com>
- Lines: 17
- Sender: usenet@e2big.mko.dec.com (Mr. USENET)
- Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski)
- Organization: Digital Equipment Corporation, Nashua NH
- References: <1993Jan22.060311.5226@cs.rit.edu>
- Date: Fri, 22 Jan 1993 18:21:01 GMT
-
-
- In article <1993Jan22.060311.5226@cs.rit.edu>,
- whd0675@cs.rit.edu (Walter H Dick, III) writes:
- |>
- |>A statement in VAXC such as:
- |>
- |> i = (x + 511) / 512;
- |>
- |>generates ten or so instructions. Is there anyway to get it to generate:
- |>
- |> ADDL3 #511,x,R0
- |> DIVL3 R0,#512,i
-
- Under VAX C V3.2-044, I get an ADDL3 followed by a DIVL2 for this. How are
- variables i and x declared in this program?
-
- --PSW
-