🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.lang
Article #66

Re: 我的天,VS的VC++与GCC相比,效率很不一样

#66
From: 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�������Ѿ�ʹ�����Ż�ѡ�
>>>>>>>>> �������ʵ�������˵��ˡ�
>>
>>
>>
>>
Technical Details
Message-ID: <f65pnl$m5g$2@news.yaako.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail
References: <f5o1u5$mch$1@news.yaako.com> <f5od8d$87p$1@news.yaako.com> <f5q9si$p28$1@news.yaako.com> <f5qclb$u9e$1@news.yaako.com> <f5si9p$7cs$1@news.yaako.com> <f5sl8q$ce4$1@news.yaako.com> <f5slih$d5e$1@news.yaako.com> <f5so5i$hmh$1@news.yaako.com> <f5vpm6$cat$1@news.yaako.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11047e,68dfa6a18681adeb
X-Google-Thread: 107c7f,68dfa6a18681adeb
X-Google-Attributes: gid11047e,gid107c7f,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail
From: yong <luoyong_zh@enorth.com.cn>
Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan
Subject: Re: 我的天,VS的VC++与GCC相比,效率很不一样
Date: Sat, 30 Jun 2007 22:36:01 +0800
Organization: Bentium Ltd. (CN99)
Lines: 113
Message-ID: <f65pnl$m5g$2@news.yaako.com>
References: <f5o1u5$mch$1@news.yaako.com> <f5od8d$87p$1@news.yaako.com> <f5q9si$p28$1@news.yaako.com> <f5qclb$u9e$1@news.yaako.com> <f5si9p$7cs$1@news.yaako.com> <f5sl8q$ce4$1@news.yaako.com> <f5slih$d5e$1@news.yaako.com> <f5so5i$hmh$1@news.yaako.com> <f5vpm6$cat$1@news.yaako.com>
NNTP-Posting-Host: 221.197.36.201
Mime-Version: 1.0
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: news.yaako.com 1183214133 22704 221.197.36.201 (30 Jun 2007 14:35:33 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Sat, 30 Jun 2007 14:35:33 +0000 (UTC)
User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622)
In-Reply-To: <f5vpm6$cat$1@news.yaako.com>