🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51076

how do I optimize this?

#51076
From: Marty Leisner x71348
Date: Mon, 28 Jun 1993 16:01
14 lines
1028 bytes
If I have code like:

static char foo[] = "this is a test";

main()  {  }

how would the compiler optimize by not
even including foo in the object? (since there
is no reason to). 

--
Marty Leisner	leisner@eso.mc.xerox.com   leisner.henr801c@xerox.com
"C makes it easy to shoot yourself in the foot, C++ makes it harder,
but when you do, it blows away your whole leg" -- Bjarne Stroustrup
Technical Details
Message-ID: <1993Jun28.160124.16176@spectrum.xerox.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!rutgers!rochester!rocksanne!hydrus!leisner

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,477330dbf4257f34,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-28 17:36:51 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!rutgers!rochester!rocksanne!hydrus!leisner
From: leisner@hydrus (Marty Leisner x71348 )
Newsgroups: gnu.gcc.help
Subject: how do I optimize this?
Message-ID: <1993Jun28.160124.16176@spectrum.xerox.com>
Date: 28 Jun 93 16:01:24 GMT
Sender: news@spectrum.xerox.com
Reply-To: leisner@eso.mc.xerox.com
Organization: Xerox
Lines: 14
X-Newsreader: TIN [version 1.2 PL0]