Archived

This topic is now archived and is closed to further replies.

decompiling? is it possible?

This topic is 5650 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to be able to break games down into their source code just for curiosity''s sake and to learn from also. Is there a utility i can get to do this?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Instead of creating an arguement why this can not be done, try checking out open source games on open source sites.

I have no links to open source sites, but I''m sure the gentlemen following this post may have one or two...or simply use your search engine.

-James

Share this post


Link to post
Share on other sites
Rather than flame you for suggesting such a thing...I suppose I''ll just answer your question.

Yes, there are decompilers, but it depends on the language. You won''t understand the code they generate. Variables will be given non-descriptive names (because variable names aren''t stored in the compiled program in MOST languages).

The problem is most games are written with optimized compilers. Optimized code is often harder to decompile, since it is no longer a simple pattern-matching problem.

So your best bet is to dissassemble the program, producing assembly language code. Once again, you won''t have useful variable names.

But be careful about what code you look at to ''learn from.'' There are laws which apply to software and there is a such thing as theft when it comes to code. Stick to public domain examples. You don''t want to get yourself into a legal situation down the road.

There....I answered the question without bringing my personal feelings on morality. *phew*

--TheMuuj

Share this post


Link to post
Share on other sites
quote:
Original post by hpotter2
In that case, where can i download the quake source code? I know it is free somewhere out there.



Get Quake 2''s source if you can. The engine is far superior to Quake.

You may even get what little source of Quake 3 is available (which does not include, among other things, the core rendering engine).

Wait a few years and I''m sure Quake 3 will be GPLed too.

--TheMuuj

Share this post


Link to post
Share on other sites