• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Returning long long values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Returning long long values
      • From: David Dunham <email@hidden>
References: 
 >Returning long long values (From: David Dunham <email@hidden>)

  • Prev by Date: Returning long long values
  • Next by Date: Re: Returning long long values
  • Previous by thread: Returning long long values
  • Next by thread: Re: Returning long long values
  • Index(es):
    • Date
    • Thread