Article View: cn.comp.lang
Article #61Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
From: �IJ���
Date: Wed, 27 Jun 2007 04:14
Date: Wed, 27 Jun 2007 04:14
122 lines
6416 bytes
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�������Ѿ�ʹ�����Ż�ѡ�
>>>>>>> �������ʵ�������˵��ˡ�
Technical Details
Message-ID:
<f5so5i$hmh$1@news.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mailReferences:
<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>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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!panix!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail From: "�IJ���" <tabris17@NULL.COM> Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan Subject: Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ�� Date: Wed, 27 Jun 2007 12:14:57 +0800 Organization: Bentium Ltd. (CN99) Lines: 127 Message-ID: <f5so5i$hmh$1@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> NNTP-Posting-Host: 124.79.2.87 X-Trace: news.yaako.com 1182917618 18129 124.79.2.87 (27 Jun 2007 04:13:38 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Wed, 27 Jun 2007 04:13:38 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 FL-Build: Fidolook 2002 (SL) 6.0.2800.94 - 5/4/2005 11:39:16