Log in

View Full Version : Decompiler in IDA


ice_cracked
March 29th, 2013, 03:10
greetings if this has been asked before my apologies and I have looked through previous posts.

Having recently installed IDA 6.1 I was curious to look at the output of the decompiler into C code.

Tried to run it by F5 and received an error message Decompilation Failure: FFFFFFFF: wrong basic type sizes in compiler settings.

Currently the compiler settings are set to

Compiler: Visual C++
Default calling convention: Stdcall
Memory model: Code near, Data near
Default alignment: 8
sizeof(bool): 1
sizeof(int): 4
sizeof(enum): 4


any assistance muchly appreciated and have a good day.

ZaiRoN
March 29th, 2013, 03:42
Directly from the user manual:

- wrong basic type sizes in compiler settings
Some basic type sizes are incorrect. The decompiler requires that
sizeof(int) == 4
sizeof(bool) == 4
sizeof(enum) == 4
sizeof(long) == 4
sizeof(near pointer) == 4
Please check the type sizes in the Options, Compiler dialog box and modify them if they are incorrect.

ice_cracked
March 29th, 2013, 04:20
You're a legend mate thanks so much I will give it a try.

I actually don't have a user manual but will see if I can download one somewhere.

Red wine oh yea just partaking a little here myself.

Thanks very much and take care of yourself.

Just tried it and works perfectly thanks very much again mate.

hdj0569
March 29th, 2013, 10:57
My IDA6.1 can goes well.

Compiler Setup
Compiler: Visual C++
Default calling convention: Cdecl <- Here is difference.
Memory model: Code near, Data near
Default alignment: 8
sizeof(bool): 1
sizeof(int): 4
sizeof(enum): 4

Good luck!