Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #4835
| From | "Bill Cunningham" <nospam@nspam.invalid> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: code and data |
| Date | 2014-10-20 17:38 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <m23vcp$k34$1@speranza.aioe.org> (permalink) |
| References | <m23paq$4ht$1@speranza.aioe.org> <zge1w.538878$NQ4.299324@fx26.am4> |
"Richard Heathfield" <invalid@see.sig.invalid> wrote in message news:zge1w.538878$NQ4.299324@fx26.am4... > Bill Cunningham wrote: > >> Now is a flat binary only data or does it contain any code? I know >> the >> sections are stripped away. > > The distinction between code and data is arbitrary. A program that zips up > executables treats code as data. An interpreter treats data as code. > > Here's a binary (nybbled into hexadecimal for ease of reading). > > 74 4A 24 89 05 32 8C 66 CA 1D EA 01 EA 39 1D 4F > 57 2B B8 29 21 CD 27 2B B5 CA A3 08 64 68 99 F3 > 92 C2 53 7E 20 B3 3D E7 C6 38 B3 2A 55 42 32 86 > 66 07 81 61 A1 F5 A9 A4 AF F9 53 D4 5C 77 EA CD > > Is that code or data? > > The only meaningful answer is "yes". What if your first two bytes, 74 4A was a format descriptor. Would that be considered "code"? Bill
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
code and data "Bill Cunningham" <nospam@nspam.invalid> - 2014-10-20 15:55 -0400
Re: code and data Melzzzzz <mel@zzzzz.com> - 2014-10-20 22:25 +0200
Re: code and data "Bill Cunningham" <nospam@nspam.invalid> - 2014-10-20 17:34 -0400
Re: code and data Melzzzzz <mel@zzzzz.com> - 2014-10-21 00:11 +0200
Re: code and data "Bill Cunningham" <nospam@nspam.invalid> - 2014-10-20 20:01 -0400
Re: code and data Richard Heathfield <invalid@see.sig.invalid> - 2014-10-20 21:29 +0100
Re: code and data "Bill Cunningham" <nospam@nspam.invalid> - 2014-10-20 17:38 -0400
Re: code and data Richard Heathfield <invalid@see.sig.invalid> - 2014-10-20 23:09 +0100
csiph-web