Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  C Decompiler?
« previous next »
  • Print
Pages: [1]

Author Topic: C Decompiler?  (Read 3373 times)

Offline motionman95

  • Member
  • *
  • Posts: 108
  • aka coderkid
    • coderkid
C Decompiler?
« on: March 26, 2009, 02:05:53 AM »
Today is a sad day. I've lost all my C source code for my RockLock plugin. I was replacing my old rockbox (3.1) source folder with the new version (3.2) and had cleared the recycle bin before I realized that I had deleted my RockLock.c file. :( Are there any C decompilers? and what tips do you have to prevent this from happening again? Thanks!
« Last Edit: March 28, 2009, 08:00:01 PM by mcuelenaere »
Logged
My MP3 Player: Sansa C250 (2GB)
OS: Win XP SP3

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: C Decompilier?
« Reply #1 on: March 26, 2009, 02:06:58 AM »
Use SVN. You can update source code and preserve your changes.

Using the source tarball is basically the worst way you can do it and shouldn't be used if you intend to do any serious development.
Logged

Offline rp

  • Member
  • *
  • Posts: 12
Re: C Decompilier?
« Reply #2 on: March 26, 2009, 03:54:21 AM »
Or even better, get used to git (git-svn), then you can also make local commits.
Logged
last.fm

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: C Decompilier?
« Reply #3 on: March 26, 2009, 04:30:59 AM »
or even better, make backups :)
edit: and no, there are no C "decompilers", you'd have to disassemble the code and write c code from that yourself so rewriting the plugin from scratch is probably a lot faster.
« Last Edit: March 26, 2009, 04:32:44 AM by nls »
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: C Decompilier?
« Reply #4 on: March 26, 2009, 06:26:04 AM »
Quote from: nls on March 26, 2009, 04:30:59 AM
edit: and no, there are no C "decompilers", you'd have to disassemble the code and write c code from that yourself so rewriting the plugin from scratch is probably a lot faster.
IDA comes with a pretty usable X86 C decompiler.
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: C Decompilier?
« Reply #5 on: March 27, 2009, 09:34:57 AM »
Quote from: mcuelenaere on March 26, 2009, 06:26:04 AM
Quote from: nls on March 26, 2009, 04:30:59 AM
edit: and no, there are no C "decompilers", you'd have to disassemble the code and write c code from that yourself so rewriting the plugin from scratch is probably a lot faster.
IDA comes with a pretty usable X86 C decompiler.

I assume you mean http://www.hex-rays.com/decompiler.shtml.
a quote from that page:
Quote
It converts executable programs into a human readable C-like pseudocode text.
so it doesn't output real c code, oh and it costs over 2000USD
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: C Decompilier?
« Reply #6 on: March 28, 2009, 07:59:44 PM »
Quote from: nls on March 27, 2009, 09:34:57 AM
Quote from: mcuelenaere on March 26, 2009, 06:26:04 AM
IDA comes with a pretty usable X86 C decompiler.

I assume you mean http://www.hex-rays.com/decompiler.shtml.
Correct
Quote
a quote from that page:
Quote
It converts executable programs into a human readable C-like pseudocode text.
so it doesn't output real c code, oh and it costs over 2000USD
Yes I know it is quite expensive, but it's the closest thing I've seen to a C decompiler.
Logged

Offline toffe

  • Member
  • *
  • Posts: 54
Re: C Decompiler?
« Reply #7 on: March 30, 2009, 01:54:42 AM »
if it is for x86 code , there is a decompiler, I don't know really if it is good or not :
http://www.backerstreet.com/rec/rec.htm
and I forgot this one :
http://boomerang.sourceforge.net/
« Last Edit: March 30, 2009, 01:56:14 AM by toffe »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  C Decompiler?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.101 seconds with 14 queries.