🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53021

SUMMARY: What are these strlen() warnings and how come object files are so big?

#53021
From: Simon Marshall
Date: Sun, 05 Apr 1992 20:26
19 lines
1521 bytes
	A week or so ago, I asked the following 2 little questions.

	Firstly, when I compile with gcc-2.*, I get warnings with the use of
    strlen().  This is due to the fact that ANSI specifies that strlen()
    should be declared size_t (ie. unsigned long).  Correcting string.h and
    putting the manually fixed version in gcc's fixed includes directory
    solved this.  On our Suns & Sequent it is declared as int.  Thanks to
    Donn Cave & Olaf Flebbe.

	Secondly, why are executables so much larger than vendor ccs?  Well,
    on a Sun, this is due to using static libraries.  I was mistaken when I
    tested it on another machine; it was larger when I specified the debug
    flag.  Normally, gcc actually produces slightly smaller code.  Thanks to
    rms.

	Hope the answer to the first clears this up for a few other people,
    and no-one got mislead over the second.

	Simon.
Technical Details
Message-ID: <9204060022.AB10637@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sequent.cc.HUll.ac.UK!S.Marshall

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ffd0d2b49eca3052,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-04-05 13:26:43 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sequent.cc.HUll.ac.UK!S.Marshall
From: S.Marshall@sequent.cc.HUll.ac.UK (Simon Marshall)
Subject: SUMMARY: What are these strlen() warnings and how come object files 
         are so big?
Message-ID: <9204060022.AB10637@life.ai.mit.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 5 Apr 1992 20:26:43 GMT
Lines: 19