🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53046

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

#53046
From: Simon Marshall
Date: Mon, 23 Mar 1992 16:16
24 lines
1830 bytes
	Well there are 2 little questions here.  The first is annoying me &
    the second is a curiosity...  I built gcc-2.0 on Sequent Symmetry S81
    running DYNIX V3.0.17.10.  Whenever I compile anything, be it my own,
    GNU or mit X source code, for each file that uses strlen(), I get the
    compiler message:

/usr/include/strings.h:25:
		      warning: conflicting types for built-in function `strlen'

	strlen() is declared as int in strings.h, and it makes no difference
    whether or however I declare strlen() in code.  No other string function
    seems to bother it.  Have I built gcc-2.0 wrong?  Or is it the fault of
    the Sequent?

	My curiosity is that I find that gccs produce executables maybe 20
    times larger than vendor's cc.  How come?  Even stripped, they're still
    huge.  Is it just because the compiler is designed to run on any
    machine?

	Cheers, Simon. 
_______________________________________________________________________________
Simon Marshall, Dept. of Computer Science, University of Hull, Hull HU6 7RX, UK
  "Football isn't about life and death.  It's more important than that." Bill
Email: S.Marshall@Hull.ac.uk    Phone: +44 482 465181    Fax: 466666   Shankley
Technical Details
Message-ID: <9203250308.AB00958@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,8cf0a1b64188689b,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-23 08:16:20 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: What are these strlen() warnings and how come object files are so big?
Message-ID: <9203250308.AB00958@life.ai.mit.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 23 Mar 1992 16:16:20 GMT
Lines: 24