www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/06/18:09:40

Date: Tue, 06 Jul 93 14:36:31 PDT
From: Peter Crowley <pcrowley AT qdeck DOT com>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: How do you eliminate dead code?

#define TRACE 0

if (TRACE) fprintf(stderr...

this gets assembled as
jmp            --\
push             |
...              |
call fprintf     |
               <-/

I am compiling this with -O2 -m486. Does anyone know if there is a switch
to eliminate the inaccessable code?

Peter Crowley
Quarterdeck Offices Systems
pcrowley AT qdeck DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019