Article View: cn.comp.lang
Article #59Re: �ҵ��죬VS��VC++��GCC��ȣ�Ч�ʺܲ�һ��
From: �IJ���
Date: Tue, 26 Jun 2007 06:46
Date: Tue, 26 Jun 2007 06:46
91 lines
4502 bytes
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�������Ѿ�ʹ�����Ż�ѡ�
>>> �������ʵ�������˵��ˡ�
Technical Details
Message-ID:
<f5qclb$u9e$1@news.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!news.newsmth.net!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>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: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!news.newsmth.net!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: Tue, 26 Jun 2007 14:46:17 +0800 Organization: Bentium Ltd. (CN99) Lines: 94 Message-ID: <f5qclb$u9e$1@news.yaako.com> References: <f5o1u5$mch$1@news.yaako.com> <f5od8d$87p$1@news.yaako.com> <f5q9si$p28$1@news.yaako.com> NNTP-Posting-Host: 124.79.2.87 X-Trace: news.yaako.com 1182840299 31022 124.79.2.87 (26 Jun 2007 06:44:59 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Tue, 26 Jun 2007 06:44:59 +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