Recognize files compiled by Metrowerks CodeWarrior
Author: jacobleeharrisCreated Nov 24, 2024Updated Aug 11, 2026
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:
Source: horsicq/Detect-It-Easy