Returning long long values
Returning long long values
- Subject: Returning long long values
- From: David Dunham <email@hidden>
- Date: Fri, 20 Feb 2009 16:20:34 -0800
I'm trying to implement a function like
__int64 ParseInt(char*);
which seems to work fine with Visual C++. With GCC I'm using signed
long long, and within my function, things seem to work. But when I
return a value, it changes (at least on Intel).
I tried to look up the ABI, and it implied that function values are
returned in EAX. Isn't that a 32-bit register?
David Dunham
Voice/Fax: 206 783 7404 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden