Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6486

Re: Passing a Method Name to a Method, Redux

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!news.szn.dk!pnx.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date Sat, 23 Jul 2011 19:22:13 -0400
From Arne Vajhøj <arne@vajhoej.dk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Passing a Method Name to a Method, Redux
References <fpg7079ca2dtgipdphr8rm234kgmkd1t3l@4ax.com> <iu0t8a$kqc$1@dont-email.me> <dsm9071kpkj0s4uabgupfmg49evfmhvs6h@4ax.com> <iu2v22$6nh$1@dont-email.me> <3uuf071k5c0b32cdlv31s7p1u6cjn3t11j@4ax.com> <iu9a1b$8h4$1@dont-email.me> <71ph07l246l93uf4umn5tjgp6dtfgnr4a9@4ax.com> <4e28c7a0$0$308$14726298@news.sunsite.dk> <c5kj27pehob8m91ilr27gq4ndg853j3h56@4ax.com> <j0ehp2$l3l$1@localhost.localdomain> <4e2ae67d$0$303$14726298@news.sunsite.dk> <j0f042$p4k$1@localhost.localdomain>
In-Reply-To <j0f042$p4k$1@localhost.localdomain>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Lines 42
Message-ID <4e2b57ab$0$309$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source
NNTP-Posting-Host 72.192.23.157
X-Trace news.sunsite.dk DXC=DF[mRX0g5L=RV[Kf06ReB9YSB=nbEKnk;@IQ>cfbXVe6JPe3\kP5EU1KBm9cfh9BS4M2;kT<[:>[1I4HCnH?38C2ef1ekjYXb44
X-Complaints-To staff@sunsite.dk
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6486

Show key headers only | View raw


On 7/23/2011 1:24 PM, Martin Gregorie wrote:
> On Sat, 23 Jul 2011 11:19:19 -0400, Arne Vajhøj wrote:
>
>> On 7/23/2011 9:19 AM, Martin Gregorie wrote:
>
>>> The last C compilers I remember that had separate preprocessors were
>>> K&R, so were very old. In these, cc was effectively a shell that
>>> invoked the preprocessor, the C -->   assembler translator, the
>>> assembler and the linker in turn. Actually, I'm still using one - the
>>> standard OS/9 v2.4 C compiler, which dates from 1992 and runs on 68xxx
>>> hardware.
>>>
>>> I don't remember any ANSI C compilers I've used being structured this
>>> way: certainly I've not seen any version of the GNU compiler or its
>>> derivatives that aren't a monolithic chunk that includes all
>>> compilation stages except the linker. AFAICR this also applied to the
>>> Borland compilers.
>>>
>>> So, if that's really what you want, go and find a old K&R compiler or
>>> its source.
>>
>> GCC still has a separate executable for preprocessing!
>>
>> The driver gcc or g++ calls cpp, cc1 or cc1plus, as and ld.
>>
> Fair cop, guv.
>
> I looked at /usr/bin, thought the preprocessor was called cpre so didn't
> find it and glanced through 'man gcc' but didn't find anything describing
> the compiler structure. The fact that the options are subdivided onto
> compilation stages doesn't necessarily say anything about the compiler
> physical structure, and as gcc is fairly big, I assumed....

It is cpp (or gcc-cpp).

Not a very good name - most would assume that cpp=c plus plus.

But then most people would call it via the general compiler driver, so
it does not matter much.

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-21 20:43 -0400
  Re: Passing a Method Name to a Method, Redux Gene Wirchenko <genew@ocis.net> - 2011-07-22 12:35 -0700
    Re: Passing a Method Name to a Method, Redux Patricia Shanahan <pats@acm.org> - 2011-07-22 13:09 -0700
    Re: Passing a Method Name to a Method, Redux lewbloch <lewbloch@gmail.com> - 2011-07-22 13:35 -0700
    Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-22 16:53 -0400
    Re: Passing a Method Name to a Method, Redux Martin Gregorie <martin@address-in-sig.invalid> - 2011-07-23 13:19 +0000
      Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-23 11:19 -0400
        Re: Passing a Method Name to a Method, Redux lewbloch <lewbloch@gmail.com> - 2011-07-23 09:20 -0700
          Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-23 13:33 -0400
            Re: Passing a Method Name to a Method, Redux lewbloch <lewbloch@gmail.com> - 2011-07-23 11:43 -0700
              Re: Passing a Method Name to a Method, Redux lewbloch <lewbloch@gmail.com> - 2011-07-23 12:14 -0700
                Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-23 19:19 -0400
              Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-23 19:12 -0400
        Re: Passing a Method Name to a Method, Redux Martin Gregorie <martin@address-in-sig.invalid> - 2011-07-23 17:24 +0000
          Re: Passing a Method Name to a Method, Redux Arne Vajhøj <arne@vajhoej.dk> - 2011-07-23 19:22 -0400
            Re: Passing a Method Name to a Method, Redux Martin Gregorie <martin@address-in-sig.invalid> - 2011-07-24 10:02 +0000

csiph-web