早教吧作业答案频道 -->其他-->
CFLAGS:=-Wall-Wstrict-prototypes-g-fomit-frame-pointer-ffreestandingMakefile中的这句话怎么理解?
题目详情
CFLAGS := -Wall -Wstrict-prototypes -g -fomit-frame-pointer -ffreestanding
Makefile中的这句话怎么理解?
Makefile中的这句话怎么理解?
▼优质解答
答案和解析
CFLAGS是一个变量,保存了后面的命令
gcc 提供了大量的警告选项,对代码中可能存在的问题提出警 告,通常可以使用-Wall来开启以下警告:
-Waddress -Warray-bounds (only with -O2) -Wc++0x-compat
-Wchar-subscripts -Wimplicit-int -Wimplicit-function-declaration
-Wcomment -Wformat -Wmain (only for C/ObjC and unless
-ffreestanding) -Wmissing-braces -Wnonnull -Wparentheses
-Wpointer-sign -Wreorder -Wreturn-type -Wsequence-point
-Wsign-compare (only in C++) -Wstrict-aliasing -Wstrict-overflow=1
-Wswitch -Wtrigraphs -Wuninitialized (only with -O1 and above)
-Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value
-Wunused-variable
下列选项控制编译器警告信息:
例如 : -Wstrict-prototypes 使用了非原型的函数声明时给出警告
参考一下: GNU Makefile 使用手册 吧.
gcc 提供了大量的警告选项,对代码中可能存在的问题提出警 告,通常可以使用-Wall来开启以下警告:
-Waddress -Warray-bounds (only with -O2) -Wc++0x-compat
-Wchar-subscripts -Wimplicit-int -Wimplicit-function-declaration
-Wcomment -Wformat -Wmain (only for C/ObjC and unless
-ffreestanding) -Wmissing-braces -Wnonnull -Wparentheses
-Wpointer-sign -Wreorder -Wreturn-type -Wsequence-point
-Wsign-compare (only in C++) -Wstrict-aliasing -Wstrict-overflow=1
-Wswitch -Wtrigraphs -Wuninitialized (only with -O1 and above)
-Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value
-Wunused-variable
下列选项控制编译器警告信息:
例如 : -Wstrict-prototypes 使用了非原型的函数声明时给出警告
参考一下: GNU Makefile 使用手册 吧.
看了 CFLAGS:=-Wall-...的网友还看了以下:
同一温度平衡:①PCl5(g)?PCl3(g)+Cl2(g)△H>0 K=1mol/L②CO(g) 2020-05-17 …
跪谢!已知两函数f(x)=8x²+16x-k,g(x)=2x³+跪谢!已知两函数f(x)=8x²+ 2020-07-07 …
H和K是群G的正规子群,且HK=G.证:G/(H∩K)是到(G/H)×(G/K)的同构.我的思路是 2020-07-09 …
二叉树先序序列为E,F,H,I,G,J,K中序序列为H,F,I,E,J,K,G,那么这棵树是怎么排 2020-07-10 …
给出一棵树的逻辑结构T=(K,R),其中K={A,B,C,D,E,F,G,H,I,J}R={r}r 2020-07-22 …
若对于正整数k、g(k)表示k的最大奇数因数,例如g(3)=3,g(20)=5,并且g(2m)=g 2020-07-31 …
(y)减一污染、保护环境是全世界最热门的课题.Cw在催化剂作用下可以与小k反应生成甲醇:Cw(g)+ 2020-11-01 …
图论中:设G=(n,m),且G中每个顶点的度数不是k,就是k+1,则G中度为k的顶点的个数是多少 2020-11-17 …
新古典经济增长理论中怎么理解技术进步使经济增长△k=sy-(n+g+δ)k当sy=(n+g+δ)k达 2020-12-18 …
对于正整数k,记g(k)表示k的最大奇数因数,例如g(1)=1,g(2)=1,g(10)=5.设Sn 2020-12-23 …