🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3955

MSC5.1 - program fails when optimised ?

#3955
From: Glen Eustace
Date: Mon, 17 Dec 1990 02:55
30 lines
1767 bytes
I am presently devloping some programs using the Programmer's Toolkit
that is available as an add-on to the Sun Microsystems PC-NFS
product.  I am getting thoroughly frustrated by the following
situation which I hope some one can help with.  If I compile all the
modules ( MSC 5.1 ) with the options,

 CFLAGS        = -c -Zi -Od -AL -G0 -D$(MSC) $(INCLUDE)

then the program generally works.  But when I attempt to use

 CFLAGS        = -c -Gs -Ox -AL -G0 -D$(MSC) $(INCLUDE)

all various parts fail completely.

I have had this experience with other operating systems and compilers
but am not really sure what I ought to be looking for with MSC to fix the
problem.  If it is to do with the optimisation can anyone suggest
what constructs could be being corrupted.  If I change the level of
optimisation what is a good alternative.  If its not optimisation at
all can some one throw some light on the situation.

Any help appreciated, Thanks.



-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Glen Eustace, Software Manager, Computer Centre, Massey University,
Palmerston North, New Zealand.        EMail: G.Eustace@massey.ac.nz
Phone: +64 63 69099 x7440, Fax: +64 63 505 607,    Timezone: GMT-12
Technical Details
Message-ID: <1990Dec17.025507.27464@massey.ac.nz>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Eustace

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Eustace
From: G.Eustace@massey.ac.nz (Glen Eustace)
Newsgroups: comp.os.msdos.programmer
Subject: MSC5.1 - program fails when optimised ?
Message-ID: <1990Dec17.025507.27464@massey.ac.nz>
Date: 17 Dec 90 02:55:07 GMT
Organization: Massey University, Palmerston North, New Zealand
Lines: 30
X-Reader: NETNEWS/PC Version 2.1