Path: utzoo!attcan!uunet!cs.utexas.edu!oakhill!oakhill-gateway!hamm From: hamm@austoto.sps.mot.com (Steve Hamm) Newsgroups: comp.sys.apollo Subject: cc -g makes programs run faster? Message-ID: Date: 17 Sep 90 14:47:45 GMT Sender: news@oakhill.UUCP Reply-To: hamm@austoto.sps.mot.com (Steve Hamm) Organization: Motorola SPS, Austin, TX Lines: 25 Serious strangeness: We're compiling our program for debugging, under SR10.1 BSD, cc 6.7, on a 4500. The compile flags normally look like: -A cpu,3000 -W0,-opt,4 -D_BUILTINS When we change them to -g -A cpu,3000 -W0,-opt,4 -D_BUILTINS the program runs about three times faster. (It also grows from 1.8meg to about 10meg.) We are attempting to debug some problems that move around depending on what level of optimization we use, so we suspect some wonky behavior on the part of the compiler. But... anyone know of a reason why including the extra symbol information and expanding the binary size by 5 times should SPEED UP a program? -- Steve Hamm ----------- Motorola Inc. Semiconductor Sector CAD 3501 Ed Bluestein Blvd., MD-M2, Austin TX 78762 Ph: (512) 928-6612 Internet: hamm@austoto.sps.mot.com UUCP: ...cs.utexas.edu!oakhill!austoto!hamm