
这篇文章是我阅读《嵌入式实时操作系统μCOS-II原理及应用》后的读书笔记,记录目的是为了个人后续回顾复习使用。
前置内容:
文章目录
1 批处理文件与makefile的综合使用
使用链接文件、makefile脚本文件和批处理文件完成下面具有3个源程序的应用程序的编译、链接。
头文件 printA.h
#ifndef _PRINTA_H_
#define _PRINTA_H_
extern const char *msgA;
#endif
源文件 printA.c
#include "printA.h"
const char *msgA = "AAAAA";
头文件 printB.h
#ifndef _PRINTB_H_
#define _PRINTB_H_
extern const char *msgB;
#endif
源文件 printB.c
#include "printB.h"
const char *msgB = "BBBBB";
源文件 test.c
#include <stdio.h>
#include "printA.h"
#include "printB.h"
int main(void)
{
unsigned char i = 0;
for

最低0.47元/天 解锁文章
3198

被折叠的 条评论
为什么被折叠?



