RE: Returning long long values
RE: Returning long long values
- Subject: RE: Returning long long values
- From: "John Mikros" <email@hidden>
- Date: Fri, 20 Feb 2009 16:32:51 -0800
- Thread-topic: Returning long long values
The high 32-bits are returned in edx
-----Original Message-----
From: xcode-users-bounces+jmikros=email@hidden [mailto:xcode-users-bounces+jmikros=email@hidden] On Behalf Of David Dunham
Sent: Friday, February 20, 2009 4:21 PM
To: XCode Users' List
Subject: Returning long long values
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
_______________________________________________
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