Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 11th, 2006, 02:25 AM
saenzcorp@yahoo.com
Guest
 
Posts: n/a
Default Is C++ decompilable ?

like vb.net, java, etc...

  #2  
Old August 11th, 2006, 02:25 AM
Phlip
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?

saenzcorp wrote:
Quote:
like vb.net, java, etc...
This is a FAQ, and one of the best snappy responses is, "Yes, the C++
decompiler is right over there, next to the machine that turns hamburgers
back into live cows".

The point of C++ is to be compiled, aggressively and one-way, into the
tightest possible opcodes. Reversing compilation is impossible, just as
reversing a one-way cryptogram is impossible.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!


  #3  
Old August 11th, 2006, 03:05 AM
Eric Pruneau
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?


<saenzcorp@yahoo.coma écrit dans le message de news:
1155259776.135932.265050@p79g2000cwp.googlegroups. com...
Quote:
like vb.net, java, etc...
>
http://www.parashift.com/c++-faq-lit....html#faq-38.4

Eric


  #4  
Old August 11th, 2006, 03:05 AM
Thomas Matthews
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?

saenzcorp@yahoo.com wrote:
Quote:
like vb.net, java, etc...
>
How can programs written in those languages be decompilable?

If I give you an executable, can you convert it back into
the source language without knowing which language it was
written in?

Yes, an executable can be converted into source code. There
is no possible method to convert the executable into the
exact source code that generated it; there are just too
many means to create similar constructs.

For example, upon detecting a loop in the executable,
how do you know whether it was a "for", "do-while",
"while", or "if-goto"?

Also, one has to consider compiler optimizations and
debug information.

This is a topic that has generated many conversations on
both sides of the issue.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

  #5  
Old August 11th, 2006, 09:35 AM
allscos
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?


saenzcorp@yahoo.com 寫é“:
Quote:
like vb.net, java, etc...
I think that is impossible, because it is unlike java, it's a binary
file.

  #6  
Old August 11th, 2006, 08:05 PM
Maverick
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?

Thank Guys !
I was just trying to make sure I wasn't going to learn yet another
useless language !

What kind of idiot make a language that's readable after being compiled
?
I guess it's an easy way to steal our ideas and concepts, after all
promoting a product is the hardest part and with a large company like
microcrap that wouldn't be an issue...

SUN only released JAVA for free because they knew you would never be
able to build anything that wasn't open source...

Thanks,
Mav



allscos wrote:
Quote:
saenzcorp@yahoo.com 寫é“:
>
Quote:
like vb.net, java, etc...
>
I think that is impossible, because it is unlike java, it's a binary
file.
  #7  
Old August 11th, 2006, 09:05 PM
Phlip
Guest
 
Posts: n/a
Default Re: Is C++ decompilable ?

Maverick wrote:
Quote:
I was just trying to make sure I wasn't going to learn yet another
useless language !
All languages are useless. Learning them is priceless. Learn learn learn!
Quote:
What kind of idiot make a language that's readable after being compiled
?
Plenty of languages use a lite P-code that runs very close to the source
language. Lua, Ruby, Python, Perl, and Smalltalk (probably in that order of
ascending complexity) all use a P-code that is little more than a compressed
and tokenized version of the input source.

Only the JVM languages - and their wannabes like VB or .NET - use a P-code
that pretends to be a machine language.

And, of course, by now you have learned that C++ is useless unless it
compiles to raw machine code. That's why we use it for system-level
programming.
Quote:
I guess it's an easy way to steal our ideas and concepts, after all
promoting a product is the hardest part and with a large company like
microcrap that wouldn't be an issue...
If I want to steal your algorithm, I will steal it, and there's nothing you
can do about it. Compiling (and shrouding the compiled code) may raise the
cost of stealing it, but can't prevent it. The CPU must eventually execute
it, and CPUs can be probed.

Companies should compete by responding to customers. I can add features to
my code faster than you can decompile my last version.
Quote:
SUN only released JAVA for free because they knew you would never be
able to build anything that wasn't open source...
That's a backwards way to say this:

For any language to succeed, the cost of learning it must be as low as
possible. No learner wants to add the primary cost, in engineer-hours, to a
secondary cost of purchasing a compiler. These days, all compilers come
free - in crippled versions.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles