Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 1998 10:27:29 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        jb@cimlogic.com.au, tlambert@primenet.com
Cc:        chuckr@Glue.umd.edu, freebsd-hackers@FreeBSD.ORG, mike@smith.net.au, Nicolas.Souchu@prism.uvsq.fr
Subject:   Re: C and static initialization with unions
Message-ID:  <199808071427.KAA23918@lakes.dignus.com>
In-Reply-To: <199808070739.AAA23183@usr08.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert writes:
> 
> It's perfectly possible to get these warnings from a K&R compiler.
> To do this, you need to change your object format to attribute the
> symbol table entries.  Fred Fish did this for the Motorolla 88k
> compiler back in the early 80's.  What we are suffering here is a
> legacy of compiler writers too lazy to implement decent smart linker
> technology.

 As one of the "compiler writers too lazy" :-) Let me quickly add that
 compiler writers usually distinguish themselves from linker writers.

 I'd point the finger at the linker writers :-) :-)

 Anyway; to credibly add to Terry's point.  HP's MPE system (on an
 HP-3000) did this type of link-time checks as well... which was
 "way cool" for FORTRAN programs.   [A side-effect of the fact this
 was a stack machine also made for some nice FORTRAN programs...]

 Furthermore, I had the job of porting Fred's 78K emulator (before
 Motorola changed the name to 88k) to Data General's AOS system.

 After getting everything running (comiler, linker, emulator) one of the
 first things everyone disliked was the link-time checking.   I don't
 believe that survived in the actually 88K stuff...

 So, it's not just that people don't do it; sometimes, users don't want
 it...

 And, to close, Microsoft "kinda" does this with __cdecl functions.
 They append "@nnn" to the symbol, where nnn is the amount of incoming
 parm size the function requires.    You could use this for some simple
 C-level function overloading... if you really wanted to...

 So, I suppose; my point is there is ample precident to consider
 doing something like that in a linker... if we wanted to.   Now, to
 go find some of those "linker writers"....

	- Dave Rivers -


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808071427.KAA23918>