dcc:dcc-一个C编译器,向新手程序员解释错误

时间:2024-05-28 09:13:26
【文件属性】:

文件名称:dcc:dcc-一个C编译器,向新手程序员解释错误

文件大小:163KB

文件格式:ZIP

更新时间:2024-05-28 09:13:26

Python

介绍 dcc使用clang编译C程序,并将适合新手程序员的说明添加到新手程序员可能会遇到和不理解的编译器消息中。 例如: $ dcc a.c a.c:3:15: warning: address of stack memory associated with local variable 'counter' returned [-Wreturn-stack-address] return &counter; dcc explanation: you are trying to return a pointer to the local variable 'counter'. You can not do this because counter will not exist after the function returns. See more informa


网友评论