• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Question for the experts: Good C De-Compiler"

Collapse

  • darmstadt
    replied
    And if you're thinking of looking at propriety code, don't

    Leave a comment:


  • Doggy Styles
    replied
    Originally posted by milanbenes View Post
    Afternoon Experts,

    I need to look at some compiled c code.

    Can anyone recommend a good C De-Compiler ?

    Ta,

    Milan.
    PM threaded. He'll knock one up for you tomorrow lunchtime.

    Leave a comment:


  • OwlHoot
    replied
    Looks like Milan's been bungey posting again, judging by his conspicuous absence.

    He's probably forgotten all about this thread by now.

    Leave a comment:


  • MarillionFan
    replied
    Originally posted by doodab View Post
    You can disassemble object code to assembly fairly easily but getting back to C is approximate at best.

    There are so called decompilers out there but bit of a waste of time IMO. You also need to specify platform...
    It'll be for an HP Printer.

    Leave a comment:


  • AtW
    replied
    IDA is best.

    Leave a comment:


  • rootsnall
    replied
    Originally posted by milanbenes View Post
    Afternoon Experts,

    I need to look at some compiled c code.

    Can anyone recommend a good C De-Compiler ?

    Ta,

    Milan.
    What you doing messing with that tulip

    You want to get into .Net

    Leave a comment:


  • OwlHoot
    replied
    Originally posted by milanbenes View Post
    Afternoon Experts,

    I need to look at some compiled c code.

    Can anyone recommend a good C De-Compiler ?

    Ta,

    Milan.
    For what architecture? Intel? ARM? Motorola?

    Also, is the compiled code in intermediate binary files, which can easily be parsed as these files have a documented structure with short parcels of data and code etc, or is it an executable file?

    In the latter case, does the program use dynamic/shared linked libraries, or is the relevant library code embedded statically in the EXE file itself?

    An EXE program with embedded library code is next to impossible to decompile, because the actual code is a small proportion of the whole, and very hard to distinguish from the library code, unless the file also includes symbol tables.

    IDA (formerly called IDA Pro) is the most well known, and I think that can recognise code from many standard embedded libraries

    Also, do you really mean C, or is it C++? A disassembly of the latter will be _much_ harder to follow, due to all the crud and bells and whistles automatically associated with the code.

    In general, disassembly of an executable program of any significant length, without a symbol table or patterns of disassembled earlier similar versions available, is _very_ hard, painstaking, and time-consuming work, and often well-nigh impossible!

    edit: If you have a serious requirement for this, for example if some baboon has lost vital source code which you have to reconstruct, I have a fair bit of experience and might be available for some freelance work in the evening if you'd like to PM me with details. (I once wrote my own Intel disassembler, so I know the Intel instruction set backwards) But I'm not promising anything!
    Last edited by OwlHoot; 25 January 2013, 17:11.

    Leave a comment:


  • doodab
    replied
    If you're on solaris you can use dtrace to trace execution, function entry and exit and so on.

    If the executable has debug info in you can attach a debugger (you can do it without debug info but it's not as useful)

    Strings will dump the string table.

    Both of those will give you some insight into what it does.

    Leave a comment:


  • cojak
    replied
    Someone walked off with the source code? Or was it 'archived'?

    Leave a comment:


  • doodab
    replied
    You can disassemble object code to assembly fairly easily but getting back to C is approximate at best.

    There are so called decompilers out there but bit of a waste of time IMO. You also need to specify platform...

    Leave a comment:


  • milanbenes
    started a topic Question for the experts: Good C De-Compiler

    Question for the experts: Good C De-Compiler

    Afternoon Experts,

    I need to look at some compiled c code.

    Can anyone recommend a good C De-Compiler ?

    Ta,

    Milan.

Working...
X