Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: copying structs - PPC/Intel different results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copying structs - PPC/Intel different results



I'm sorry, please ignore, I meant to send to send that to the xcode- users list.



On Jun 28, 2006, at 8:13 AM, I wrote:

Given this example:

struct Thingy {
	int a;
	int b;
	int c;
};
const Thingy kFirstThingy = { 1, 2, 3 };
const Thingy kSecondThingy = kFirstThingy;

When compiling with GCC 4.0.1 for PPC code, the three values of kSecondThingy are 1, 2, 3. But when compiling with GCC 4.0.1 for Intel code, the three values of kSecondThingy are 0, 0, 0.

I'm unsure, is one of these a bug? If so, which? I would tend to think the Intel results are wrong, though maybe I'm doing something I shouldn't be doing, I'm not sure...

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >copying structs - PPC/Intel different results (From: Marc Poirier <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.