Compiles or assembles source files and produces a list of makefile dependency rules suitable for use by a make utility.
armclang creates a makefile dependency file for each source file, using a
.d suffix. Unlike -M and -MM, that cause compilation or assembly to
stop after the preprocessing stage, -MD and -MMD allow for compilation or assembly to continue.
-MD lists both system header files and user header
files.
-MMD lists only user header files.
Note:
Only dependencies visible to the preprocessor
are included. Files added using the GNU assembler syntax .incbin or .include directives (or
armasm syntax INCBIN, INCLUDE, or GET directives) are not
included.
Example
The following example creates makefile dependency lists test1.d and test2.d and compiles the source files to an image with the default name, a.out:
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.