From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,90913d25ee29fad7 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,90913d25ee29fad7 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-13 07:44:47 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!yeshua.marcam.com!usc!elroy.jpl.nasa.gov!decwrl!src.dec.com!crl.dec.com!jac.zko.dec.com!btgmax.zko.dec.com!cowan From: cowan@btgmax.zko.dec.com (Ken Cowan) Newsgroups: vmsnet.alpha,comp.sys.dec Subject: Re: Problem with /OPT on DEC BASIC AXP Date: 13 Jul 1994 13:39:52 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <300qr8$njb@jac.zko.dec.com> References: <1994Jul12.182706.4407@malins.mala.bc.ca> Reply-To: cowan@rtl.enet.dec.com NNTP-Posting-Host: btgmax.zko.dec.com X-Newsreader: mxrn 6.18-9 Xref: bga.com vmsnet.alpha:848 comp.sys.dec:4305 In article <1994Jul12.182706.4407@malins.mala.bc.ca>, dunnett@mala.bc.ca (Malcolm Dunnett) writes: |> |> I'm converting a bunch of VAX BASIC programs to DEC BASIC on an Alpha. |> |> The conversion seems to go OK if I use /NOOPT, but there's some weird |>problems if I use any of the Optimize levels. One I've identified so |>far is that strings are getting messed up, ie if I say: |> |> b$ = a$ + "some text" |> |>it seems that only part of "some text" gets added to b$. |> |> Has anyone else seen this? Is there an ECO out? |> |> What's your impression of optimization in DEC BASIC in general, should |>I worry about getting this fixed or just ignore Optimize? (most of these |>programs are going to be IO bound anyway) |> |> Any other strange things I should watch out for? |> |>-- |>============================================================================= |>Malcolm Dunnett Malaspina University-College Email: dunnett@mala.bc.ca |>Computer Services Nanaimo, B.C. CANADA V9R 5S5 Tel: (604)755-8738 |> I don't recall seeing any DEC BASIC developers posting to this group. If you post or mail me a self-contained example, I'll pass it along. Although DEC BASIC is a "V1", it started with the front end code for VAX BASIC and shares the backend technology with most of our other Alpha compilers. Those 2 parts of the technology are quite mature. The VAX BASIC compiler didn't optimize, or at least not very much. We have seen occasions where application bugs only appear with optimization turned on. We've also seen occasions where optimizers have bugs. We can't tell about this case until we see a test program. -- Ken Cowan, ZK2-3/Q8 cowan@rtl.enet.dec.com Digital Equipment Corporation decwrl!rtl!cowan 110 Spit Brook Rd, Nashua, NH 03062