DIE-engine icon indicating copy to clipboard operation
DIE-engine copied to clipboard

Recognize files compiled by Metrowerks CodeWarrior

Open jacobleeharris opened this issue 1 year ago • 4 comments

DIE incorrectly recognizes a MWCC-compiled binary as compiled by GCC.

One method of identifying a MWCC-compiled binary is to check the .comment section which has the string "MW CodeWarrior".

In stripped binaries, this is unfortunately not available. Another method of identifying MWCC is that MWCC uses a single section binary with the default linker script. Additionally, the last method I know of to detect MWCC is that MWCC uses a custom padding for executables.

As MWCC is a proprietary compiler, I unfortunately do not have access to any executables I could redistribute myself.

Here is an image of a MWCC-compiled executable being incorrectly designated as GCC: MWCC Binary in DIE

jacobleeharris avatar Nov 24 '24 20:11 jacobleeharris

Thanks a lot for the info. I will take a look! :)

horsicq avatar Nov 25 '24 08:11 horsicq

@jacobleeharris Can you may provide an sample file to test?

BJNFNE avatar Jun 29 '25 14:06 BJNFNE

Sorry, I do not have any samples I can provide however...

https://github.com/decompme/compilers/releases/tag/compilers

this has a number of PS2 and PSP compilers (including Metrowerks CodeWarrior compilers). I would have attached a simple example using one of these compilers but unfortunately, Wine hangs on compiling when using MWCCPS2.

Maybe you will have better luck compiling an example if you are on Windows. I do not have access to a windows machine/vm at this time.

jacobleeharris avatar Jun 30 '25 20:06 jacobleeharris

Sorry, I do not have any samples I can provide however...

https://github.com/decompme/compilers/releases/tag/compilers

this has a number of PS2 and PSP compilers (including Metrowerks CodeWarrior compilers). I would have attached a simple example using one of these compilers but unfortunately, Wine hangs on compiling when using MWCCPS2.

Maybe you will have better luck compiling an example if you are on Windows. I do not have access to a windows machine/vm at this time.

I am on Ubuntu, thanks for the Samples.

Since they also used at PS2 i can try also my Adiboo PS2 game.

BJNFNE avatar Jul 01 '25 06:07 BJNFNE