Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Problem with /OPT on DEC BASIC AXP
@ 1994-07-13  1:27 Malcolm Dunnett
  1994-07-13 13:39 ` Ken Cowan
  0 siblings, 1 reply; 2+ messages in thread
From: Malcolm Dunnett @ 1994-07-13  1:27 UTC (permalink / raw)



 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with /OPT on DEC BASIC AXP
  1994-07-13  1:27 Problem with /OPT on DEC BASIC AXP Malcolm Dunnett
@ 1994-07-13 13:39 ` Ken Cowan
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Cowan @ 1994-07-13 13:39 UTC (permalink / raw)



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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-07-13 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-13  1:27 Problem with /OPT on DEC BASIC AXP Malcolm Dunnett
1994-07-13 13:39 ` Ken Cowan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox