- 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!
Collapse
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.
Logging in...
Previously on "Question for the experts: Good C De-Compiler"
Collapse
-
PM threaded. He'll knock one up for you tomorrow lunchtime.Originally posted by milanbenes View PostAfternoon Experts,
I need to look at some compiled c code.
Can anyone recommend a good C De-Compiler ?
Ta,
Milan.
Leave a comment:
-
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:
-
It'll be for an HP Printer.Originally posted by doodab View PostYou 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:
-
For what architecture? Intel? ARM? Motorola?Originally posted by milanbenes View PostAfternoon Experts,
I need to look at some compiled c code.
Can anyone recommend a good C De-Compiler ?
Ta,
Milan.
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:
-
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:
-
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:
-
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.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Why contractors keep putting off their pension (and why I'm one of them) Today 02:43
- HMRC loan charge settlement offer: 3 things to check before you sign Yesterday 07:41
- HMRC standstill agreements extended to 72 months: why the term's doubled, and what to check before signing Jul 31 05:53
- Who owns the loans? Inside the mystery of the loan charge recall scandal Jul 30 06:20
- Umbrella company winding-up petitions in 2026: the practical guide for contractors Jul 29 05:29
- Payments on Account deadline: what contractors must do before July 31st — maybe for the final few times Jul 28 08:01
- Andy Burnham's first 100 days: five things contractors need from the new PM Jul 27 00:53
- Starmer vs Burnham on housing: What their rival plans mean for your contractor mortgage Jul 22 00:59
- Burnham's housing vision vs. Starmer's home-buying reforms: what it means for your contractor mortgage Jul 22 00:59
- In Khalil v Innovate Transport, a limited company contractor wasn’t a worker and was on £2.30 — not £230 Jul 21 07:58


Leave a comment: