🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MSC5.1 - program fails when optimised ?

#4092
From: Risto Lankinen
Date: Thu, 27 Dec 1990 09:22
31 lines
1587 bytes
G.Eustace@massey.ac.nz (Glen Eustace) writes:

> ... 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.

Hi!

I have experienced similar problems in the Windows environment.  I got the
problem nailed into the use of -Oe switch, which (according to documentation)
enables the global register allocation.  It could also have been an 'unsafe'
optimization for Windows, only.  Anyway, my code now works after exclusion of
the -Oe switch (which incidentally is 'included' in the -Ox switch).

In place of -Ox switch for Windows programs, I'm using...

      CL -c -AS -G2csw -Ocgilswz -Zcelp FILENAME.C

Terveisin: Risto Lankinen
-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              2   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME!  Now working on 2 +1 *
replies: risto@yj.data.nokia.fi     ***************************************
Technical Details
Message-ID: <895@tuura.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!rice!uupsi!sunic!fuug!tuura!risto
References: <1990Dec17.025507.27464@massey.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!rice!uupsi!sunic!fuug!tuura!risto
From: risto@tuura.UUCP (Risto Lankinen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: MSC5.1 - program fails when optimised ?
Message-ID: <895@tuura.UUCP>
Date: 27 Dec 90 09:22:57 GMT
References: <1990Dec17.025507.27464@massey.ac.nz>
Organization: Nokia Data Systems Oy
Lines: 31