🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

11 total messages Started by batch Mon, 25 Jun 2007 09:29
�ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#79
Author: batch
Date: Mon, 25 Jun 2007 09:29
17 lines
2423 bytes
看看这段程序:
——————————————————————
#include <stdio.h>
#include <stdlib.h>

int main ()
{
    int a;
    a = sizeof(char);
    printf ("char %d\n",a);
    a = sizeof(unsigned char);
    printf ("unsigned char %d\n",a);
    a = sizeof(short);
    printf ("short %d\n",a);
    a = sizeof(unsigned short);
    printf ("unsigned short %d\n",a);
    a = sizeof(int);
    printf ("int %d\n",a);
    a = sizeof(unsigned int);
    printf ("unsigned int %d\n",a);
    a = sizeof(long);
    printf ("long %d\n",a);
    a = sizeof(unsigned long);
    printf ("unsigned long %d\n",a);
    a = sizeof(long long);
    printf ("long long %d\n",a);
    a = sizeof(unsigned long long);
    printf ("unsigned long long %d\n",a);
    system ("pause");
    return 0;
}

——————————————————————

GCC用了16.1K,VC居然用了60K,而且已经使用了优化选项!
这样相差实在离谱了点了。
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#80
Author: ChiLL
Date: Mon, 25 Jun 2007 12:18
38 lines
2718 bytes
�ⲻ��Ч�������, ��Windows��VS����������Ч��Ӧ�û��DZ�������������ø�.
"batch" <chinaonhb@hotmail.com> д����Ϣ����:f5o1u5$mch$1@news.yaako.com...
> ��������
> ��������������������������������������������
> #include <stdio.h>
> #include <stdlib.h>
>
> int main ()
> {
>    int a;
>    a = sizeof(char);
>    printf ("char %d\n",a);
>    a = sizeof(unsigned char);
>    printf ("unsigned char %d\n",a);
>    a = sizeof(short);
>    printf ("short %d\n",a);
>    a = sizeof(unsigned short);
>    printf ("unsigned short %d\n",a);
>    a = sizeof(int);
>    printf ("int %d\n",a);
>    a = sizeof(unsigned int);
>    printf ("unsigned int %d\n",a);
>    a = sizeof(long);
>    printf ("long %d\n",a);
>    a = sizeof(unsigned long);
>    printf ("unsigned long %d\n",a);
>    a = sizeof(long long);
>    printf ("long long %d\n",a);
>    a = sizeof(unsigned long long);
>    printf ("unsigned long long %d\n",a);
>    system ("pause");
>    return 0;
> }
>
> ��������������������������������������������
>
> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
> �������ʵ�������˵��ˡ� 
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#81
Author: �IJ���
Date: Mon, 25 Jun 2007 12:49
50 lines
2875 bytes
vs2005
debug����40k
release����6k
������ʹ��libcmt.lib��̬������Ҳֻ����48k����
��֪��������ô���������

-- 
����㰮����һ������һ�������ϵĻ���
��ôҹ�䣬
�㿴����վ͸е�������졣
���е������϶������Ż���


"batch" <chinaonhb@hotmail.com> д����Ϣ����:f5o1u5$mch$1@news.yaako.com...
> ��������
> ��������������������������������������������
> #include <stdio.h>
> #include <stdlib.h>
>
> int main ()
> {
>    int a;
>    a = sizeof(char);
>    printf ("char %d\n",a);
>    a = sizeof(unsigned char);
>    printf ("unsigned char %d\n",a);
>    a = sizeof(short);
>    printf ("short %d\n",a);
>    a = sizeof(unsigned short);
>    printf ("unsigned short %d\n",a);
>    a = sizeof(int);
>    printf ("int %d\n",a);
>    a = sizeof(unsigned int);
>    printf ("unsigned int %d\n",a);
>    a = sizeof(long);
>    printf ("long %d\n",a);
>    a = sizeof(unsigned long);
>    printf ("unsigned long %d\n",a);
>    a = sizeof(long long);
>    printf ("long long %d\n",a);
>    a = sizeof(unsigned long long);
>    printf ("unsigned long long %d\n",a);
>    system ("pause");
>    return 0;
> }
>
> ��������������������������������������������
>
> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
> �������ʵ�������˵��ˡ� 
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#83
Author: Buzzard
Date: Mon, 25 Jun 2007 14:06
41 lines
2416 bytes
��һ����ȫ���Ǵ�ӡ����������ڰ�

On Mon, 25 Jun 2007 17:29:12 +0800, "batch" <chinaonhb@hotmail.com>
wrote:

>��������
>��������������������������������������������
>#include <stdio.h>
>#include <stdlib.h>
>
>int main ()
>{
>    int a;
>    a = sizeof(char);
>    printf ("char %d\n",a);
>    a = sizeof(unsigned char);
>    printf ("unsigned char %d\n",a);
>    a = sizeof(short);
>    printf ("short %d\n",a);
>    a = sizeof(unsigned short);
>    printf ("unsigned short %d\n",a);
>    a = sizeof(int);
>    printf ("int %d\n",a);
>    a = sizeof(unsigned int);
>    printf ("unsigned int %d\n",a);
>    a = sizeof(long);
>    printf ("long %d\n",a);
>    a = sizeof(unsigned long);
>    printf ("unsigned long %d\n",a);
>    a = sizeof(long long);
>    printf ("long long %d\n",a);
>    a = sizeof(unsigned long long);
>    printf ("unsigned long long %d\n",a);
>    system ("pause");
>    return 0;
>}
>
>��������������������������������������������
>
>GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>�������ʵ�������˵��ˡ�
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#84
Author: batch
Date: Tue, 26 Jun 2007 05:54
23 lines
3009 bytes
反正都是CTRL+C和CTRL+V,不管了。。。

"Buzzard" <Buzzard@126.com> 写入消息 news:jqiv739ap5mn60osbatla3latpm2ss3pmi@4ax.com...
> 汗一个,全都是打印输出,不至于吧
> 
> On Mon, 25 Jun 2007 17:29:12 +0800, "batch" <chinaonhb@hotmail.com>
> wrote:
> 
>>看看这段程序:
>>——————————————————————
>>#include <stdio.h>
>>#include <stdlib.h>
>>
>>int main ()
>>{
>>    int a;
>>    a = sizeof(char);
>>    printf ("char %d\n",a);
>>    a = sizeof(unsigned char);
>>    printf ("unsigned char %d\n",a);
>>    a = sizeof(short);
>>    printf ("short %d\n",a);
>>    a = sizeof(unsigned short);
>>    printf ("unsigned short %d\n",a);
>>    a = sizeof(int);
>>    printf ("int %d\n",a);
>>    a = sizeof(unsigned int);
>>    printf ("unsigned int %d\n",a);
>>    a = sizeof(long);
>>    printf ("long %d\n",a);
>>    a = sizeof(unsigned long);
>>    printf ("unsigned long %d\n",a);
>>    a = sizeof(long long);
>>    printf ("long long %d\n",a);
>>    a = sizeof(unsigned long long);
>>    printf ("unsigned long long %d\n",a);
>>    system ("pause");
>>    return 0;
>>}
>>
>>——————————————————————
>>
>>GCC用了16.1K,VC居然用了60K,而且已经使用了优化选项!
>>这样相差实在离谱了点了。
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#57
Author: batch
Date: Tue, 26 Jun 2007 05:57
23 lines
2954 bytes
奇怪的是,相差比较远。

"ChiLL" <arthur.ping.foo@gmail.com> 写入消息 news:f5obqv$63r$1@news.yaako.com...
> 这不是效率问题吧, 在Windows下VS编译后的运行效率应该还是比其它编译器来得高.
> "batch" <chinaonhb@hotmail.com> 写入消息新闻:f5o1u5$mch$1@news.yaako.com...
>> 看看这段程序:
>> ——————————————————————
>> #include <stdio.h>
>> #include <stdlib.h>
>>
>> int main ()
>> {
>>    int a;
>>    a = sizeof(char);
>>    printf ("char %d\n",a);
>>    a = sizeof(unsigned char);
>>    printf ("unsigned char %d\n",a);
>>    a = sizeof(short);
>>    printf ("short %d\n",a);
>>    a = sizeof(unsigned short);
>>    printf ("unsigned short %d\n",a);
>>    a = sizeof(int);
>>    printf ("int %d\n",a);
>>    a = sizeof(unsigned int);
>>    printf ("unsigned int %d\n",a);
>>    a = sizeof(long);
>>    printf ("long %d\n",a);
>>    a = sizeof(unsigned long);
>>    printf ("unsigned long %d\n",a);
>>    a = sizeof(long long);
>>    printf ("long long %d\n",a);
>>    a = sizeof(unsigned long long);
>>    printf ("unsigned long long %d\n",a);
>>    system ("pause");
>>    return 0;
>> }
>>
>> ——————————————————————
>>
>> GCC用了16.1K,VC居然用了60K,而且已经使用了优化选项!
>> 这样相差实在离谱了点了。 
> 
>
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#59
Author: �IJ���
Date: Tue, 26 Jun 2007 06:46
91 lines
4502 bytes
C:\Documents and Settings\Administrator\����>"C:\Program Files\Microsoft
Visual
Studio .NET 2003\Vc7\bin\cl.exe" size.c /MD /GX /O2 /D "WIN32" /D "NDEBUG"
/D "_
CONSOLE" /D "_MBCS"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

size.c
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:size.exe
size.obj


������ 3k

----
Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ,��
����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨����ҵ
�����Լ�΢�������һ�㹱�ס�

>E:\test>cl /Ox size.c
>���� 80x86 �� Microsoft (R) 32 λ C/C++ �Ż������� 14.00.50727.762 ��
>��Ȩ����(C) Microsoft Corporation����������Ȩ��

>size.c
>Microsoft (R) Incremental Linker Version 8.00.50727.762
>Copyright (C) Microsoft Corporation.  All rights reserved.

/out::size.exe
>size.obj

>E:\test>

>�汾��VS2005+SP1+Vista������

>"�IJ���" <tabris17.cn@hotmail.com> д����Ϣ
news:f5od8d$87p$1@news.yaako.com...
>> vs2005
>> debug����40k
>> release����6k
>> ������ʹ��libcmt.lib��̬������Ҳֻ����48k����
>> ��֪��������ô���������

>> -- 
>> ����㰮����һ������һ�������ϵĻ���
>> ��ôҹ�䣬
>> �㿴����վ͸е�������졣
>> ���е������϶������Ż���


>> "batch" <chinaonhb@hotmail.com> д����Ϣ����
:f5o1u5$mch$1@news.yaako.com...
>>> ��������
>>> ��������������������������������������������
>>> #include <stdio.h>
>>> #include <stdlib.h>

>>> int main ()
>>> {
>>>    int a;
>>>    a = sizeof(char);
>>>    printf ("char %d\n",a);
>>>    a = sizeof(unsigned char);
>>>    printf ("unsigned char %d\n",a);
>>>    a = sizeof(short);
>>>    printf ("short %d\n",a);
>>>    a = sizeof(unsigned short);
>>>    printf ("unsigned short %d\n",a);
>>>    a = sizeof(int);
>>>    printf ("int %d\n",a);
>>>    a = sizeof(unsigned int);
>>>    printf ("unsigned int %d\n",a);
>>>    a = sizeof(long);
>>>    printf ("long %d\n",a);
>>>    a = sizeof(unsigned long);
>>>    printf ("unsigned long %d\n",a);
>>>    a = sizeof(long long);
>>>    printf ("long long %d\n",a);
>>>    a = sizeof(unsigned long long);
>>>    printf ("unsigned long long %d\n",a);
>>>    system ("pause");
>>>    return 0;
>>> }

>>> ��������������������������������������������

>>> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>>> �������ʵ�������˵��ˡ�
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#60
Author: �IJ���
Date: Wed, 27 Jun 2007 03:25
106 lines
5494 bytes
ֻ����1���Ż�����/O2
�������ֻ���Ż��ٶȣ����Ǵ�С����ȥ���Ļ���exe�ļ���С��û��Ӱ��

----
Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ,��
����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨����ҵ
�����Լ�΢�������һ�㹱�ס�

>���˴����Ż�ѡ��

>"�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5qclb$u9e$1@news.yaako.com...
>> C:\Documents and Settings\Administrator\����>"C:\Program Files\Microsoft
>> Visual
>> Studio .NET 2003\Vc7\bin\cl.exe" size.c /MD /GX /O2 /D "WIN32" /D
>> "NDEBUG"
>> /D "_
>> CONSOLE" /D "_MBCS"
>> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
>> 80x86
>> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

>> size.c
>> Microsoft (R) Incremental Linker Version 7.10.3077
>> Copyright (C) Microsoft Corporation.  All rights reserved.

>> /out:size.exe
>> size.obj


>> ������ 3k

>> ----
>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ
,��
>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨��
��ҵ
>> �����Լ�΢�������һ�㹱�ס�

>>>E:\test>cl /Ox size.c
>>>���� 80x86 �� Microsoft (R) 32 λ C/C++ �Ż������� 14.00.50727.762 ��
>>>��Ȩ����(C) Microsoft Corporation����������Ȩ��

>>>size.c
>>>Microsoft (R) Incremental Linker Version 8.00.50727.762
>>>Copyright (C) Microsoft Corporation.  All rights reserved.

>> /out::size.exe
>>>size.obj

>>>E:\test>

>>>�汾��VS2005+SP1+Vista������

>>>"�IJ���" <tabris17.cn@hotmail.com> д����Ϣ
>> news:f5od8d$87p$1@news.yaako.com...
>>>> vs2005
>>>> debug����40k
>>>> release����6k
>>>> ������ʹ��libcmt.lib��̬������Ҳֻ����48k����
>>>> ��֪��������ô���������

>>>> -- 
>>>> ����㰮����һ������һ�������ϵĻ���
>>>> ��ôҹ�䣬
>>>> �㿴����վ͸е�������졣
>>>> ���е������϶������Ż���


>>>> "batch" <chinaonhb@hotmail.com> д����Ϣ����
>> :f5o1u5$mch$1@news.yaako.com...
>>>>> ��������
>>>>> ��������������������������������������������
>>>>> #include <stdio.h>
>>>>> #include <stdlib.h>

>>>>> int main ()
>>>>> {
>>>>>    int a;
>>>>>    a = sizeof(char);
>>>>>    printf ("char %d\n",a);
>>>>>    a = sizeof(unsigned char);
>>>>>    printf ("unsigned char %d\n",a);
>>>>>    a = sizeof(short);
>>>>>    printf ("short %d\n",a);
>>>>>    a = sizeof(unsigned short);
>>>>>    printf ("unsigned short %d\n",a);
>>>>>    a = sizeof(int);
>>>>>    printf ("int %d\n",a);
>>>>>    a = sizeof(unsigned int);
>>>>>    printf ("unsigned int %d\n",a);
>>>>>    a = sizeof(long);
>>>>>    printf ("long %d\n",a);
>>>>>    a = sizeof(unsigned long);
>>>>>    printf ("unsigned long %d\n",a);
>>>>>    a = sizeof(long long);
>>>>>    printf ("long long %d\n",a);
>>>>>    a = sizeof(unsigned long long);
>>>>>    printf ("unsigned long long %d\n",a);
>>>>>    system ("pause");
>>>>>    return 0;
>>>>> }

>>>>> ��������������������������������������������

>>>>> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>>>>> �������ʵ�������˵��ˡ�
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#61
Author: �IJ���
Date: Wed, 27 Jun 2007 04:14
122 lines
6416 bytes
ָ�����ӿ⣬���ò����쳣������һЩ��

----
Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ,��
����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨����ҵ
�����Լ�΢�������һ�㹱�ס�

>�����أ�

>"�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5sl8q$ce4$1@news.yaako.com...
>> ֻ����1���Ż�����/O2
>> �������ֻ���Ż��ٶȣ����Ǵ�С����ȥ���Ļ���exe�ļ���С��û��Ӱ��

>> ----
>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ
,��
>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨��
��ҵ
>> �����Լ�΢�������һ�㹱�ס�

>>>���˴����Ż�ѡ��

>>>"�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5qclb$u9e$1@news.yaako.com...
>>>> C:\Documents and Settings\Administrator\����>"C:\Program
>>>> Files\Microsoft
>>>> Visual
>>>> Studio .NET 2003\Vc7\bin\cl.exe" size.c /MD /GX /O2 /D "WIN32" /D
>>>> "NDEBUG"
>>>> /D "_
>>>> CONSOLE" /D "_MBCS"
>>>> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077
>>>> for
>>>> 80x86
>>>> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

>>>> size.c
>>>> Microsoft (R) Incremental Linker Version 7.10.3077
>>>> Copyright (C) Microsoft Corporation.  All rights reserved.

>>>> /out:size.exe
>>>> size.obj


>>>> ������ 3k

>>>> ----
>>>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��
ʿ
>> ,��
>>>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨
��
>> ��ҵ
>>>> �����Լ�΢�������һ�㹱�ס�

>>>>>E:\test>cl /Ox size.c
>>>>>���� 80x86 �� Microsoft (R) 32 λ C/C++ �Ż������� 14.00.50727.762 ��
>>>>>��Ȩ����(C) Microsoft Corporation����������Ȩ��

>>>>>size.c
>>>>>Microsoft (R) Incremental Linker Version 8.00.50727.762
>>>>>Copyright (C) Microsoft Corporation.  All rights reserved.

>>>> /out::size.exe
>>>>>size.obj

>>>>>E:\test>

>>>>>�汾��VS2005+SP1+Vista������

>>>>>"�IJ���" <tabris17.cn@hotmail.com> д����Ϣ
>>>> news:f5od8d$87p$1@news.yaako.com...
>>>>>> vs2005
>>>>>> debug����40k
>>>>>> release����6k
>>>>>> ������ʹ��libcmt.lib��̬������Ҳֻ����48k����
>>>>>> ��֪��������ô���������

>>>>>> -- 
>>>>>> ����㰮����һ������һ�������ϵĻ���
>>>>>> ��ôҹ�䣬
>>>>>> �㿴����վ͸е�������졣
>>>>>> ���е������϶������Ż���


>>>>>> "batch" <chinaonhb@hotmail.com> д����Ϣ����
>>>> :f5o1u5$mch$1@news.yaako.com...
>>>>>>> ��������
>>>>>>> ��������������������������������������������
>>>>>>> #include <stdio.h>
>>>>>>> #include <stdlib.h>

>>>>>>> int main ()
>>>>>>> {
>>>>>>>    int a;
>>>>>>>    a = sizeof(char);
>>>>>>>    printf ("char %d\n",a);
>>>>>>>    a = sizeof(unsigned char);
>>>>>>>    printf ("unsigned char %d\n",a);
>>>>>>>    a = sizeof(short);
>>>>>>>    printf ("short %d\n",a);
>>>>>>>    a = sizeof(unsigned short);
>>>>>>>    printf ("unsigned short %d\n",a);
>>>>>>>    a = sizeof(int);
>>>>>>>    printf ("int %d\n",a);
>>>>>>>    a = sizeof(unsigned int);
>>>>>>>    printf ("unsigned int %d\n",a);
>>>>>>>    a = sizeof(long);
>>>>>>>    printf ("long %d\n",a);
>>>>>>>    a = sizeof(unsigned long);
>>>>>>>    printf ("unsigned long %d\n",a);
>>>>>>>    a = sizeof(long long);
>>>>>>>    printf ("long long %d\n",a);
>>>>>>>    a = sizeof(unsigned long long);
>>>>>>>    printf ("unsigned long long %d\n",a);
>>>>>>>    system ("pause");
>>>>>>>    return 0;
>>>>>>> }

>>>>>>> ��������������������������������������������

>>>>>>> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>>>>>>> �������ʵ�������˵��ˡ�
Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
#65
Author: ����ֽҳ
Date: Fri, 29 Jun 2007 16:18
43 lines
2543 bytes
����ܱȽϵij�Ч��� ����ɵ��ļ���С�� -_#
Last time, Fat "batch" <chinaonhb@hotmail.com> says:


>��������
>��������������������������������������������
>#include <stdio.h>
>#include <stdlib.h>
>
>int main ()
>{
>    int a;
>    a = sizeof(char);
>    printf ("char %d\n",a);
>    a = sizeof(unsigned char);
>    printf ("unsigned char %d\n",a);
>    a = sizeof(short);
>    printf ("short %d\n",a);
>    a = sizeof(unsigned short);
>    printf ("unsigned short %d\n",a);
>    a = sizeof(int);
>    printf ("int %d\n",a);
>    a = sizeof(unsigned int);
>    printf ("unsigned int %d\n",a);
>    a = sizeof(long);
>    printf ("long %d\n",a);
>    a = sizeof(unsigned long);
>    printf ("unsigned long %d\n",a);
>    a = sizeof(long long);
>    printf ("long long %d\n",a);
>    a = sizeof(unsigned long long);
>    printf ("unsigned long long %d\n",a);
>    system ("pause");
>    return 0;
>}
>
>��������������������������������������������
>
>GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>�������ʵ�������˵��ˡ�

--
�������Ƚ���google��Ȼ���ٽ���������ѡ�����
Re: 我的天,VS的VC++与GCC相比,效率很不一样
#66
Author: yong
Date: Sat, 30 Jun 2007 14:36
113 lines
6833 bytes
��û˵���õ�VC��ʲô�汾

batch wrote:
> �Σ��Ǿͺܲ�һ�����õĶ���ȫ��Ĭ��ѡ�û�뵽������ô��
> 
> "�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5so5i$hmh$1@news.yaako.com...
>> ָ�����ӿ⣬���ò����쳣������һЩ��
>>
>> ----
>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ,��
>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨����ҵ
>> �����Լ�΢�������һ�㹱�ס�
>>
>>> �����أ�
>>> "�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5sl8q$ce4$1@news.yaako.com...
>>>> ֻ����1���Ż�����/O2
>>>> �������ֻ���Ż��ٶȣ����Ǵ�С����ȥ���Ļ���exe�ļ���С��û��Ӱ��
>>>> ----
>>>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��ʿ
>> ,��
>>>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨��
>> ��ҵ
>>>> �����Լ�΢�������һ�㹱�ס�
>>>>> ���˴����Ż�ѡ��
>>>>> "�IJ���" <tabris17@NULL.COM> д����Ϣ news:f5qclb$u9e$1@news.yaako.com...
>>>>>> C:\Documents and Settings\Administrator\����>"C:\Program
>>>>>> Files\Microsoft
>>>>>> Visual
>>>>>> Studio .NET 2003\Vc7\bin\cl.exe" size.c /MD /GX /O2 /D "WIN32" /D
>>>>>> "NDEBUG"
>>>>>> /D "_
>>>>>> CONSOLE" /D "_MBCS"
>>>>>> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077
>>>>>> for
>>>>>> 80x86
>>>>>> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
>>>>>> size.c
>>>>>> Microsoft (R) Incremental Linker Version 7.10.3077
>>>>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>>>> /out:size.exe
>>>>>> size.obj
>>
>>>>>> ������ 3k
>>>>>> ----
>>>>>> Ϊ�˷�ֹ���类�ƻ�,Ϊ��ά������ĺ�ƽ,��ְ�����ʵ�����,����������IT��
>> ʿ
>>>> ,��
>>>>>> ����ӵĴ��빤��,��ɫ��δ���й����������ڵȴ�,����ֻ��Ϊ�й�������彨
>> ��
>>>> ��ҵ
>>>>>> �����Լ�΢�������һ�㹱�ס�
>>>>>>> E:\test>cl /Ox size.c
>>>>>>> ���� 80x86 �� Microsoft (R) 32 λ C/C++ �Ż������� 14.00.50727.762 ��
>>>>>>> ��Ȩ����(C) Microsoft Corporation����������Ȩ��
>>>>>>> size.c
>>>>>>> Microsoft (R) Incremental Linker Version 8.00.50727.762
>>>>>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>>>> /out::size.exe
>>>>>>> size.obj
>>>>>>> E:\test>
>>>>>>> �汾��VS2005+SP1+Vista������
>>>>>>> "�IJ���" <tabris17.cn@hotmail.com> д����Ϣ
>>>>>> news:f5od8d$87p$1@news.yaako.com...
>>>>>>>> vs2005
>>>>>>>> debug����40k
>>>>>>>> release����6k
>>>>>>>> ������ʹ��libcmt.lib��̬������Ҳֻ����48k����
>>>>>>>> ��֪��������ô���������
>>>>>>>> -- 
>>>>>>>> ����㰮����һ������һ�������ϵĻ���
>>>>>>>> ��ôҹ�䣬
>>>>>>>> �㿴����վ͸е�������졣
>>>>>>>> ���е������϶������Ż���
>>
>>>>>>>> "batch" <chinaonhb@hotmail.com> д����Ϣ����
>>>>>> :f5o1u5$mch$1@news.yaako.com...
>>>>>>>>> ��������
>>>>>>>>> ��������������������������������������������
>>>>>>>>> #include <stdio.h>
>>>>>>>>> #include <stdlib.h>
>>>>>>>>> int main ()
>>>>>>>>> {
>>>>>>>>>    int a;
>>>>>>>>>    a = sizeof(char);
>>>>>>>>>    printf ("char %d\n",a);
>>>>>>>>>    a = sizeof(unsigned char);
>>>>>>>>>    printf ("unsigned char %d\n",a);
>>>>>>>>>    a = sizeof(short);
>>>>>>>>>    printf ("short %d\n",a);
>>>>>>>>>    a = sizeof(unsigned short);
>>>>>>>>>    printf ("unsigned short %d\n",a);
>>>>>>>>>    a = sizeof(int);
>>>>>>>>>    printf ("int %d\n",a);
>>>>>>>>>    a = sizeof(unsigned int);
>>>>>>>>>    printf ("unsigned int %d\n",a);
>>>>>>>>>    a = sizeof(long);
>>>>>>>>>    printf ("long %d\n",a);
>>>>>>>>>    a = sizeof(unsigned long);
>>>>>>>>>    printf ("unsigned long %d\n",a);
>>>>>>>>>    a = sizeof(long long);
>>>>>>>>>    printf ("long long %d\n",a);
>>>>>>>>>    a = sizeof(unsigned long long);
>>>>>>>>>    printf ("unsigned long long %d\n",a);
>>>>>>>>>    system ("pause");
>>>>>>>>>    return 0;
>>>>>>>>> }
>>>>>>>>> ��������������������������������������������
>>>>>>>>> GCC����16.1K��VC��Ȼ����60K�������Ѿ�ʹ�����Ż�ѡ�
>>>>>>>>> �������ʵ�������˵��ˡ�
>>
>>
>>
>>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads