Re: Pointers to "why C behaves like that ?"

"Roman Shaposhnick" <vugluskr@unicorn.math.spbu.ru>
26 Nov 2002 22:17:42 -0500

          From comp.compilers

Related articles
[44 earlier articles]
Re: Pointers to "why C behaves like that ?" nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-11-26)
Re: Pointers to "why C behaves like that ?" peter_flass@yahoo.com (Peter Flass) (2002-11-26)
Re: Pointers to "why C behaves like that ?" fjh@students.cs.mu.OZ.AU (Fergus Henderson) (2002-11-26)
Re: Pointers to "why C behaves like that ?" daniel_yokomiso@softhome.net (Daniel Yokomiso) (2002-11-26)
Re: Pointers to "why C behaves like that ?" thp@cs.ucr.edu (2002-11-26)
Re: Pointers to "why C behaves like that ?" vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) (2002-11-26)
Re: Pointers to "why C behaves like that ?" vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) (2002-11-26)
Re: Pointers to "why C behaves like that ?" vugluskr@unicorn.math.spbu.ru (Roman Shaposhnick) (2002-11-26)
Re: Pointers to "why C behaves like that ?" whopkins@alpha2.csd.uwm.edu (Mark) (2002-12-01)
Re: Pointers to "why C behaves like that ?" nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-12-01)
Re: Pointers to "why C behaves like that ?" joachim_d@gmx.de (Joachim Durchholz) (2002-12-01)
Re: Pointers to "why C behaves like that ?" peter_flass@yahoo.com (Peter Flass) (2002-12-01)
Re: Pointers to "why C behaves like that ?" fjh@students.cs.mu.OZ.AU (Fergus Henderson) (2002-12-01)
[17 later articles]
| List of all articles for this month |
From: "Roman Shaposhnick" <vugluskr@unicorn.math.spbu.ru>
Newsgroups: comp.compilers
Date: 26 Nov 2002 22:17:42 -0500
Organization: St.Petersburg University
References: 02-11-095 02-11-103 02-11-128
Keywords: design, types
Posted-Date: 26 Nov 2002 22:17:42 EST

On 24 Nov 2002 01:21:07 -0500, jacob navia wrote:
>> Requiring programmers to provide compilers with information that can
>> be statically inferred is an unfortunate waste of human resources.
>> Where types can be inferred statically, they can be annotated into the
>> source code via static analysis tools. Where types cannot be
>> statically inferred, the programmer ought to get a warning but the
>> execution can proceed on the basis of dynamic typing. Let the
>> programmer decide how he/she wishes to proceed.
>
>Yes, that can be maybe in principle be done but with an associated enormous
>cost in compiler complexity and problems.


    While, I completely agree with you, I must admit that we're already
    deviating from the separate compilation model into the realms of
    repositories and smart linkers.


    Nowadays, linkers have taken an awful lot of responsibilities from
    compilers. In effect linkers are presented with a complete picture
    of the software project and they're supposed to do stuff like IPO
    and COMDAT, which in my opinion can hardly qualify as a
    staged compilation model.


    Why they are doing that ? Well, because of the pressure from modern
    languages: templates from C++, extern inlines in C, things like that
    are not very well blended with the old compilation model.


    Thus, the argument of compiler having information about one source file
    at a time, is not a practical one.


Thanks,
Roman.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.