小编ice*_*oal的帖子

是否有很多Plan 9开发?

似乎计划9的最大贡献者不再在项目中,并且似乎没有大的发展.有9个风扇,一个Plan 9用户的邮件列表,每年一次他们通常会开会,但我一直在浏览源代码,有很多代码来自2002-03,其他来自2005-06,还有一些来自2008-09(http://plan9.bell-labs.com/sources/plan9/sys/src/).

我想试一试作为日常使用的操作系统(因为我是学生,现在不需要任何严肃的事情),我不知道是否使用它因为它正在进行的开发.

谢谢.如果与计划9同步的人可以给我一个答案,那就太棒了.

operating-system kernel plan-9

20
推荐指数
1
解决办法
6214
查看次数

企业在Linux上使用哪些C/C++编译器?

几个月来我一直在使用GCC编译器,这很棒,效果很好.但我想知道大型/中型企业在Linux(x86,PowerPC ......)中使用哪种C++编译器来实现高优化/性能.

这似乎是一个非常愚蠢的问题,但我还没有找到答案.

据我所知,最好的PowerPC编译器是XL,但x86我什么都不知道.

编辑:非常感谢所有答案.他们都非常有帮助.你说服我使用GCC;)问候!

c c++ linux compiler-construction enterprise

11
推荐指数
3
解决办法
1413
查看次数

C语言中的函数原型

今天Clang试图编写一个程序,给了我一个奇怪的信息.我对C不是很熟悉,所以我可能做错了,但我实际尝试的代码是这样的:

#include <stdio.h>
#include <stdlib.h>

int sum(a,b);

int main ()
{
    printf(sum(1,2));
    return 0;
}

int sum (int a, int b)
{
    return a + b;
}
Run Code Online (Sandbox Code Playgroud)

你可能已经注意到,当声明函数'sum'时,我不包括param.类型,所以预计会出错,但Clang给出的实际消息是:

ind.c:4:9: error: a parameter list without types is only allowed in a function definition
int sum(a,b);
        ^
ind.c:12:5: error: redefinition of 'sum' as different kind of symbol
int sum (int a, int b)
    ^
ind.c:4:5: note: previous definition is here
int sum(a,b);
    ^
2 errors generated.
Run Code Online (Sandbox Code Playgroud)

当Clang说它只允许在函数定义中时,它意味着什么?不是int sum(a,b);函数定义吗?

c clang function-prototypes

1
推荐指数
1
解决办法
4752
查看次数