Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #12303
| From | "Paul" <pchrist<nospam>or@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: C++ source code compilation |
| Date | 2011-12-10 14:28 +0000 |
| Organization | Netfront http://www.netfront.net/ |
| Message-ID | <jbvqbh$992$1@adenine.netfront.net> (permalink) |
| References | (12 earlier) <L5udnSYSm7coBn_TnZ2dnUVZ8g2dnZ2d@giganews.com> <jbudvp$1nk7$1@adenine.netfront.net> <X9ydnWNYr4Pnz37TnZ2dnUVZ8rCdnZ2d@giganews.com> <jbvnq4$5g2$1@adenine.netfront.net> <VcadneUJBaE2-n7TnZ2dnUVZ7o6dnZ2d@giganews.com> |
"Leigh Johnston" <leigh@i42.co.uk> wrote in message news:VcadneUJBaE2-n7TnZ2dnUVZ7o6dnZ2d@giganews.com... > On 10/12/2011 13:45, Paul <pchrist wrote: <snip> >>>>>>>>>>>>>> No both are not right. Object code is not machine code, it >>>>>>>>>>>>>> may >>>>>>>>>>>>>> contain >>>>>>>>>>>>>> code >>>>>>>>>>>>>> that resembles machine code but it's not machine code as it >>>>>>>>>>>>>> cannot >>>>>>>>>>>>>> be >>>>>>>>>>>>>> read >>>>>>>>>>>>>> by any cpu on this planet. >>>>>>>>>>>>> >>>>>>>>>>>>> I think I know what happened here. When someone said >>>>>>>>>>>>> that >>>>>>>>>>>>> an >>>>>>>>>>>>> object >>>>>>>>>>>>> file >>>>>>>>>>>>> contains compiled machined code, you erroneously thought that >>>>>>>>>>>>> he >>>>>>>>>>>>> meant >>>>>>>>>>>>> that >>>>>>>>>>>>> an object file is directly executable as-is. Thus in your >>>>>>>>>>>>> typical >>>>>>>>>>>>> sociopath >>>>>>>>>>>>> manner you loudly and proudly objected to the notion. >>>>>>>>>>>> >>>>>>>>>>>> No what was said was that a compiler directly outputs machine >>>>>>>>>>>> code. >>>>>>>>>>>> >>>>>>>>>>>> Read back you bafoon.<snip> >>>>>>>>>>> >>>>>>>>>>> A compiler directly outputs objects files and object files >>>>>>>>>>> typically >>>>>>>>>>> contain relocatable machine code ergo compilers typically >>>>>>>>>>> directly >>>>>>>>>>> output >>>>>>>>>>> machine code. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> If a newgroup post contains C++ code , do you call that message a >>>>>>>>>> C++ >>>>>>>>>> code >>>>>>>>>> file? No! >>>>>>>>>> If a file has a section that contains some machine code, this >>>>>>>>>> doesn't >>>>>>>>>> neccessarily make that file machine code. >>>>>>>>> >>>>>>>>> Earlier I posted: >>>>>>>>> >>>>>>>>> "A linker links object files produced by the compiler together and >>>>>>>>> an >>>>>>>>> object file contains machine code." >>>>>>>>> >>>>>>>>> To which you replied: >>>>>>>>> >>>>>>>>> "Object files do not contain machine code. * Shakes head in >>>>>>>>> disbelief*" >>>>>>>>> >>>>>>>>> So you are now finally admitting your mistake: objects files >>>>>>>>> typically >>>>>>>>> do >>>>>>>>> indeed contain machine code; well done. >>>>>>>>> >>>>>>>> >>>>>>>> The compiler outputs a file that contains object code, not machine >>>>>>>> code. >>>>>>>> >>>>>>>> You think you being smart calling object files(which contain object >>>>>>>> code) >>>>>>>> machine code. >>>>>>>> Object code != machine code. >>>>>>>> Object code is object code. >>>>>>>> Machine code is machine code >>>>>>>> They are different things, understand this please and stop calling >>>>>>>> object >>>>>>>> code, machine code. you fuckin half wit. >>>>>>> >>>>>>> Oh so you were not admitting your mistake after all; oh well, not >>>>>>> too >>>>>>> surprising considering that you are so dense that you have your own >>>>>>> event >>>>>>> horizon. >>>>>>> >>>>>> What mistake? >>>>>> The only mistake is yours here. >>>>>> >>>>>> What part of your child like brain makes you think that object code >>>>>> and >>>>>> machine code are the same thing? >>>>>> This is obviously what you are suggesting. >>>>>> You obviously think that a compilers' output is machine code yet also >>>>>> object >>>>>> code, so ask yourself...why do they have different names? Why >>>>>> distinguish >>>>>> between any different coding specificatons at all . All code is the >>>>>> same >>>>>> and >>>>>> at the end of the day as it will all be read by some machine after >>>>>> enough >>>>>> translations. >>>>> >>>>> I hate repeating myself but you seem to have memory problems so again >>>>> from >>>>> Wikipedia: >>>>> >>>>> "An object file is a file containing relocatable format /machine code/ >>>>> that is usually not directly executable." >>>>> >>>> >>>> We've already estaiblished what may be contained within an object file. >>>> The >>>> problem is that your limited brain capacity doesn't allow you to >>>> understand >>>> that 'containing reallocatable format machine code' doesn't actually >>>> mean >>>> the that the file, as a whole, is machine code. >>> >>> You have introduced a straw man: I never claimed that an object file as >>> a >>> whole is machine code; I claimed (and still do) that an object file >>> contains machine code. From an earlier post of mine: >>> >> That's absolute bullshit. > > Untrue. > >> You said that the compiler directly outputs machine code. > > Correct I did; the compiler directly outputs an object file that contains > machine code ergo you can say that the compiler directly outputs machine > code however this is actually another straw man attempt of yours: the > context of "directly" in that post of mine was related to the OP which was > about a compiler that produced C code as an intermediate which is then > also compiled. > >> Now you are saying well it doens't really output machine code it ouptputs >> soemthing else that contains machine code. > > I have not changed what I am saying; again I said: > > "Again with the trolling bullshit; object files typically contain > relocatable machine code /among other things/." > >> >>> "Again with the trolling bullshit; object files typically contain >>> relocatable machine code /among other things/." >>> >> >> >> I've already told you that doens't mean the object file, as a whole, is >> machine code. > > You are repeating yourself. You are telling us something that we already > know. > >> Can the output form the compiler be run on a machine? No. > > Correct. > >> Is it designed to be run on a machine? No. > > Correct. > >> Is it machine code? No > > Incorrect straw man. Part of a compiler's output is relocatable machine > code along with, among other things, relocation metadata all contained > within an object file. > >> >> >>>> >>>> I have a windows machine and VC++, ok so I compile a basic program and >>>> produce an object file. >>>> How exactly do you run this object file if it is trully machine code? >>> >>> Nobody has claimed that an object file is directly executable this does >>> not mean that it doesn't contain (relocatable) machine code however. >> >> If it doesn't run on any machine and is not intended to be run on a >> machine >> perhaps thats because its not machine code. > > Machine code was different forms; one form of machine code is machine code > that requires relocation and until it is relocated it would make no sense > to execute it. > >> >> >>> >>>> Are you suggesting its machine code but it cannot be run on any single >>>> machine on the planet? >>> >>> As I have said already object files typically contain relocatable >>> machine >>> code that cannot be run (it still requires linking). >> >> If it doesn't run on amchine , its not a machine code file. >> It doesn't matter if it contains some machine instructions witihin the >> file, >> that code has yet to be retranslated before it becomes machine code. > > As far as I can tell "machine instructions" and "machine code" are > synonyms. Perhaps you should define your terms exactly so that we can > understand what the fuck you are trying to say. > My definition of machine code is code that runs on a machine. An object file, that requires further translation before being read by a machine, is not machine code. How can you call something machine code when it's not code that can be run on a machine? I think you are pretty stupid if you can't understand this. Once again you persist that because the file contains some machine intructions it IS machine code, which is utterly incorrect. --- 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
C++ source code compilation Sheky <shekhar07.nitdgp@gmail.com> - 2011-12-06 08:49 -0800
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-06 17:06 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-07 07:39 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-07 14:11 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-07 17:37 +0000
Re: C++ source code compilation ralph <nt_consulting64@yahoo.net> - 2011-12-07 12:28 -0600
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-07 11:04 -0800
Re: C++ source code compilation Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-07 19:53 +0000
Re: C++ source code compilation Rui Maciel <rui.maciel@gmail.com> - 2011-12-07 20:41 +0000
Re: C++ source code compilation Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-08 19:48 +0000
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-07 14:56 -0600
Re: C++ source code compilation ralph <nt_consulting64@yahoo.net> - 2011-12-07 16:09 -0600
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-07 22:27 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-08 09:28 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 13:39 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 06:26 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 10:55 +0000
Re: C++ source code compilation Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-08 03:41 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 13:42 +0000
Re: C++ source code compilation Rui Maciel <rui.maciel@gmail.com> - 2011-12-08 13:56 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 14:11 +0000
Re: C++ source code compilation Rui Maciel <rui.maciel@gmail.com> - 2011-12-08 14:21 +0000
Re: C++ source code compilation gwowen <gwowen@gmail.com> - 2011-12-08 08:38 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 00:39 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 00:31 +0000
Re: C++ source code compilation Rui Maciel <rui.maciel@gmail.com> - 2011-12-09 12:12 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-08 08:56 -0800
Re: C++ source code compilation Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-09 05:23 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 14:16 +0000
Re: C++ source code compilation ralph <nt_consulting64@yahoo.net> - 2011-12-08 08:02 -0600
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-08 13:18 -0600
Re: C++ source code compilation ralph <nt_consulting64@yahoo.net> - 2011-12-09 11:43 -0600
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-09 17:24 -0600
Re: C++ source code compilation ralph <nt_consulting64@yahoo.net> - 2011-12-09 18:06 -0600
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-07 17:39 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-07 18:02 +0000
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-07 14:58 -0600
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-07 22:20 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-07 22:42 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 01:54 +0000
Re: C++ source code compilation John Bokma <john@castleamber.com> - 2011-12-07 16:55 -0600
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-07 22:58 +0000
Re: C++ source code compilation John Bokma <john@castleamber.com> - 2011-12-07 20:52 -0600
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 05:09 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 05:15 +0000
Re: C++ source code compilation John Bokma <john@castleamber.com> - 2011-12-08 11:37 -0600
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 00:45 +0000
Re: C++ source code compilation Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-10 21:46 +0000
Re: C++ source code compilation Dombo <dombo@disposable.invalid> - 2011-12-11 16:01 +0100
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 01:59 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-08 09:35 +0000
Re: C++ source code compilation Paavo Helde <myfirstname@osa.pri.ee> - 2011-12-08 12:43 -0600
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 06:31 +0000
Re: C++ source code compilation Ian Collins <ian-news@hotmail.com> - 2011-12-09 19:40 +1300
Re: C++ source code compilation gwowen <gwowen@gmail.com> - 2011-12-08 23:47 -0800
Re: C++ source code compilation Paavo Helde <myfirstname@osa.pri.ee> - 2011-12-09 02:29 -0600
Re: C++ source code compilation Tobias Müller <troplin@bluewin.ch> - 2011-12-09 07:23 +0000
Re: C++ source code compilation gwowen <gwowen@gmail.com> - 2011-12-08 23:46 -0800
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 09:24 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 11:01 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 12:23 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 10:58 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 12:35 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 12:44 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-09 04:55 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 14:20 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-09 14:33 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 14:58 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 15:11 +0000
Re: C++ source code compilation Ian Collins <ian-news@hotmail.com> - 2011-12-10 07:59 +1300
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-09 15:09 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 19:36 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-09 19:53 +0000
Re: C++ source code compilation Ian Collins <ian-news@hotmail.com> - 2011-12-10 10:03 +1300
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-09 21:10 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-09 14:06 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 23:04 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 23:15 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-09 23:37 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 01:51 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-10 09:51 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 13:50 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 08:53 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-11 20:17 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 12:37 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 13:45 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-10 13:49 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 14:37 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 08:55 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 14:07 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 14:28 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 14:50 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 14:54 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 15:17 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 18:13 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 18:36 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 22:34 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 22:46 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 23:25 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-10 23:30 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-11 03:23 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 09:12 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-12 10:05 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-12 12:05 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-12 12:58 +0000
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-11 13:29 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-11 20:33 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-11 07:14 -0800
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 09:07 +0000
Re: C++ source code compilation Tobias Müller <troplin@bluewin.ch> - 2011-12-10 14:52 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-10 15:24 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 09:05 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-11 09:01 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-11 20:22 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-12 10:11 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 15:08 +0000
Re: C++ source code compilation Rui Maciel <rui.maciel@gmail.com> - 2011-12-09 15:08 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-08 02:53 -0800
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-08 05:16 -0600
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-08 03:50 -0800
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-08 14:01 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 06:35 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-09 11:06 +0000
Re: C++ source code compilation Juha Nieminen <nospam@thanks.invalid> - 2011-12-09 12:38 +0000
Re: C++ source code compilation Paul N <gw7rib@aol.com> - 2011-12-11 12:41 -0800
Re: C++ source code compilation Leigh Johnston <leigh@i42.co.uk> - 2011-12-11 21:02 +0000
Re: C++ source code compilation "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-12 02:19 +0000
Re: C++ source code compilation 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-11 20:02 -0800
Re: C++ source code compilation red floyd <no.spam.here@its.invalid> - 2011-12-06 09:15 -0800
Re: C++ source code compilation Sheky <shekhar07.nitdgp@gmail.com> - 2011-12-06 10:29 -0800
Re: C++ source code compilation Robert Wessel <robertwessel2@yahoo.com> - 2011-12-06 12:39 -0600
Re: C++ source code compilation Victor Bazarov <v.bazarov@comcast.invalid> - 2011-12-06 13:51 -0500
Re: C++ source code compilation Paul N <gw7rib@aol.com> - 2011-12-06 14:47 -0800
csiph-web