Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
Emits dummy dependency rules.
These rules work around make errors that are generated if you remove header files without a corresponding update to the makefile.
-MP
-M
-MD
-MM
-MMD
This example sends dependency rules to standard output, without compiling the source.
source.c includes a header file:
source.c
#include <stdio.h> int main(void){ puts("Hello world\n"); return 0; }
This first example is compiled without the -MP option, and results in a dependency rule for source.o:
source.o
armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -M source.c source.o: source.c \ /include/stdio.h
This second example is compiled with the -MP option, and results in a dependency rule for source.o and a dummy rule for the header file:
armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -M -MP source.c source.o: source.c \ /include/stdio.h /include/stdio.h:
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
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.