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


Groups > comp.lang.c++ > #12558

Re: include

From "Paul" <pchrist<nospam>or@yahoo.co.uk>
Newsgroups comp.lang.c++
Subject Re: include
Date 2011-12-15 23:30 +0000
Organization Netfront http://www.netfront.net/
Message-ID <jcdvu7$p45$1@adenine.netfront.net> (permalink)
References (12 earlier) <NKydnTDIr-Uj_HfTnZ2dnUVZ7vqdnZ2d@giganews.com> <jcdp8h$fpo$1@adenine.netfront.net> <vvGdnVDWo7WX93fTnZ2dnUVZ8mCdnZ2d@giganews.com> <jcds1h$je3$1@adenine.netfront.net> <TsGdna2KRdsj4nfTnZ2dnUVZ8hCdnZ2d@giganews.com>

Show all headers | View raw


"Leigh Johnston" <leigh@i42.co.uk> wrote in message 
news:TsGdna2KRdsj4nfTnZ2dnUVZ8hCdnZ2d@giganews.com...
> On 15/12/2011 22:23, Paul <pchrist wrote:
>> "Leigh Johnston"<leigh@i42.co.uk>  wrote in message
>> news:vvGdnVDWo7WX93fTnZ2dnUVZ8mCdnZ2d@giganews.com...
>>> On 15/12/2011 21:36, Paul<pchrist wrote:
>> <snip>
>>>>>
>>>> A typical compiler outputs object code , not machine code. It doesn't
>>>> matter
>>>> if its a C or a C++ compiler. Typically the object code is then passed
>>>> through a linker to obtain machine code.
>>>>
>>>> Just because the object code *may* contain a text section which has 
>>>> some
>>>> "machine code" within it, this doesn't mean its ok to call the object
>>>> code/file , as a whole, machine code.
>>>> You are obviously of the opinion that machine code is no different from
>>>> object code and thus this loose terminology is acceptable to you. To 
>>>> call
>>>> an
>>>> object file , which contains object code, machine code when it cannot 
>>>> be
>>>> run
>>>> on any machine, nor it is intended to be run on a machine is 
>>>> technically
>>>> inaccurate.
>>>
>>> Except at no point did I ever say that an object file "as a whole" is
>>> machine code in fact I explicitly said that an object file *contains*
>>> relocatable machine code *among other things* you just thought you could
>>> get some mileage by trying to skew what I meant by the word "directly" 
>>> in
>>> my initial post which was discussing C++ compilers that emitted C code
>>> rather than machine code.
>>>
>>> Your position was that a C++ compiler does not emit machine code and 
>>> that
>>> it instead emits object code but you sneakily (and transparently) tried 
>>> to
>>> move the goal posts by talking about "files" rather than "code".  You
>>> really are a joke.
>>>
>> Your original statemnt was about the direct output from a compiler, which 
>> is
>> a file. I have not shifted any goalposts by talking about a this file.
>
> My original statement was about a C++ compiler that produces C code that 
> also requires compilation compared to a C++ compiler that produces machine 
> code "directly"; why can you not understand this? Is it plain stupidity?

But C++ compilers don't output machine code directly, they output object 
files which contain object code.


>
>> This file is an object file , which contains object code. The code is in
>> this file may not even contain an entry point function and you are 
>> calling
>> this file machine code.
>
> For the nth time: object files contain relocatable machine code among 
> other things.

This file contains C++ code but that doesn't make it C++ code:
int x = 10;

You are calling the output from a compiler machine code , when its not 
machine code, its object code.
An object file may contain some machine code in the text section but this 
doesn't justify calling the thing , as a whole , machine code.

>
>>
>> Perhaps you weren't actually talking about the ouptut from a compiler 
>> when
>> you said .." the direct output from a compiler".
>
> I was talking about a compiler that produces something that still requires 
> compilation (C code) versus something that doesn't.

What C++ compiler outputs C code anyway?

>
>> It doesn't surprise me that you now trying to deny that you were talking
>> about this file(the output form a compiler)
>
> I have not changed my position one iota; the same can not be said of 
> yourself.
>
Well you remain wrong then. A C++ compiler outputs object code, not machine 
code or C code. 



--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

include ahso <ahso47@yahoo.com> - 2011-12-13 01:45 -0800
  Re: include Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-13 02:07 -0800
    Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-13 12:44 +0000
      Re: include jacob navia <jacob@spamsink.net> - 2011-12-13 13:47 +0100
        Re: include Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-13 18:24 +0000
          Re: include jacob navia <jacob@spamsink.net> - 2011-12-13 19:30 +0100
          Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-13 18:38 +0000
            Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 18:47 +0000
              Re: include jacob navia <jacob@spamsink.net> - 2011-12-13 20:14 +0100
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 19:31 +0000
                Re: include jacob navia <jacob@spamsink.net> - 2011-12-13 21:10 +0100
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 20:17 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 20:18 +0000
                Re: include Dombo <dombo@disposable.invalid> - 2011-12-14 19:56 +0100
              Re: include Ian Collins <ian-news@hotmail.com> - 2011-12-14 08:45 +1300
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 20:03 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 20:05 +0000
                Re: include Ian Collins <ian-news@hotmail.com> - 2011-12-14 09:12 +1300
              Re: include Tobias Müller <troplin@bluewin.ch> - 2011-12-14 09:31 +0000
            Re: include Goran <goran.pusic@gmail.com> - 2011-12-14 07:06 -0800
              Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 15:35 +0000
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-14 23:19 -0800
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 12:37 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 12:38 +0000
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-15 06:12 -0800
                Re: include Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-17 15:39 -0800
        Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 08:42 +0000
          Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 09:02 +0000
            Re: include jacob navia <jacob@spamsink.net> - 2011-12-14 10:18 +0100
              Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 14:28 +0000
                Re: include jacob navia <jacob@spamsink.net> - 2011-12-14 17:25 +0100
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 17:43 +0000
          Re: include jacob navia <jacob@spamsink.net> - 2011-12-14 10:13 +0100
            Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 09:37 +0000
      Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-13 12:50 +0000
        Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 08:43 +0000
          Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 08:58 +0000
            Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 09:23 +0000
              Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 14:31 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 17:55 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 23:23 +0000
          Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-14 15:43 +0000
            Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-14 18:01 +0000
              Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 00:34 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-15 09:46 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 17:34 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-15 17:58 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 19:56 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-15 21:08 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 21:36 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-15 21:43 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 22:23 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-15 23:16 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-15 23:30 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-15 23:38 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-16 12:00 +0000
                Re: include gwowen <gwowen@gmail.com> - 2011-12-16 04:22 -0800
                Re: include 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-16 07:26 -0800
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-15 23:48 -0800
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-16 07:59 +0000
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-16 03:56 -0800
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-16 04:04 -0800
                Re: include John Bokma <john@castleamber.com> - 2011-12-16 08:28 -0600
                Re: include Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-17 15:51 -0800
                Re: include gwowen <gwowen@gmail.com> - 2011-12-16 02:11 -0800
                Re: include Goran <goran.pusic@gmail.com> - 2011-12-16 03:59 -0800
                Re: include John Bokma <john@castleamber.com> - 2011-12-16 08:24 -0600
                Re: include Tobias Müller <troplin@bluewin.ch> - 2011-12-16 15:55 +0000
                Re: include "Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl> - 2011-12-16 10:11 +0100
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-16 14:10 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-16 16:00 +0000
                Re: include "io_x" <a@b.c.invalid> - 2011-12-18 18:07 +0100
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-18 17:11 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-16 11:49 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-16 14:04 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-16 16:19 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-16 18:37 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-17 07:35 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 14:34 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-17 14:47 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 19:52 +0000
                Re: include Leigh Johnston <leigh@i42.co.uk> - 2011-12-17 20:03 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 23:11 +0000
                Re: include Juha Nieminen <nospam@thanks.invalid> - 2011-12-19 10:14 +0000
                Re: include "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-19 15:46 +0000

csiph-web