473,396 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is C++ decompilable ?

like vb.net, java, etc...

Aug 11 '06 #1
6 2240
saenzcorp wrote:
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!!!
Aug 11 '06 #2

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

Eric
Aug 11 '06 #3
sa*******@yahoo.com wrote:
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

Aug 11 '06 #4

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

Aug 11 '06 #5
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:
sa*******@yahoo.com 寫é“:
like vb.net, java, etc...

I think that is impossible, because it is unlike java, it's a binary
file.
Aug 11 '06 #6
Maverick wrote:
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!
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.
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.
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!!!
Aug 11 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: HamorSth | last post by:
What does "open source" mean in the .NET platform while almost all "non-obfuscated" codes are "Open-Source"? Just yesterday i got an add-in for my ".NET Reflector" which saved the entire...
4
by: Leo Jay | last post by:
Dear All, I lost my source code because of my incaution. so anyone can tell me how to decompile the exe file compiled by py2exe? Thanks. -- Best Regards, Leo Jay
13
by: Randy Harris | last post by:
Several years ago I became involved in a major Access development project. At the time, A2K was very new and the books were rather strongly suggesting that ADO was the future and DAO would be...
11
by: Reshat Sabiq | last post by:
Hi, I'm currently doing most of my development in Java. The only reason i'm considering alternatives is because Java is decompilable, and thus one's source code is unprotected for the most part...
4
by: Stuart Willcocks | last post by:
Hello I am intending to upgrade to either C++.NET or C#.NET but I need some guidance. I have a fair amount of experience with VB6 and a little with Visual C++ 6. My interest is mainly in...
1
by: Chua Wen Ching | last post by:
Hi, I saw this link: http://www.remotesoft.com/salamander/protector.html and the screenshots http://www.remotesoft.com/salamander/protector/screenshots/index.html#code_protection
7
by: Bobby C. | last post by:
My company is in the process of getting ready (well actually QTR 2 2004) to roll out a rewritten version of a vertical market application for the municipal market (small and medium sized cities). ...
9
by: BadOmen | last post by:
I know the obvious answer here on the VB.Net... I bought for a couple of years ago Visual Studio 6.0 Pro and I wonder what I have to gain in getting me the .Net version? I am rather new to VB...
224
by: VB6 User | last post by:
Hi all devies! Many (.NUT, .NOT or whatever), APIs, VB6, Views & Questions Your can not call APIs directly in .NET, only via P/Invoke. There are some things that cannot be done in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.