• 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
Returning long long values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Returning long long values
      • From: "John Mikros" <email@hidden>
  • Prev by Date: Re: Xcode not copying modified files to Resources folder
  • Next by Date: RE: Returning long long values
  • Previous by thread: Running project with command line arguments
  • Next by thread: RE: Returning long long values
  • Index(es):
    • Date
    • Thread