Last active
January 18, 2019 20:02
-
-
Save bert/7a8034ff42643a27f2b7c1dd8ca6d518 to your computer and use it in GitHub Desktop.
805x_Multiple_source_files_example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *~ | |
| *.bak | |
| *.asm | |
| *.ihx | |
| *.lnk | |
| *.lst | |
| *.map | |
| *.mem | |
| *.rel | |
| *.rst | |
| *.sym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <8052.h> | |
| #include "other.h" | |
| void | |
| main (void) | |
| { | |
| function (); | |
| while (1); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CC = sdcc | |
| CFLAGS = -mmcs51 --verbose --Werror --fverbose-asm | |
| all: | |
| ${CC} ${CFLAGS} -c other.c | |
| ${CC} ${CFLAGS} main.c other.rel | |
| clean: | |
| rm -f *~ | |
| rm -f *.asm | |
| rm -f *.ihx | |
| rm -f *.lnk | |
| rm -f *.lst | |
| rm -f *.map | |
| rm -f *.mem | |
| rm -f *.rel | |
| rm -f *.rst | |
| rm -f *.sym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <8052.h> | |
| #include "other.h" | |
| void | |
| function (void) | |
| { | |
| unsigned int a; | |
| for (a = 0; a < 10000; a++); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern void function (void); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment