October 30, 2025, 02:17:02 AM

News:

IWBasic runs in Windows 11!


The CDECL calling convention

Started by Parker, December 30, 2005, 02:47:53 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Parker

I've heard that floating point number returns are stored in 'st(0)' when it is a subroutine created in C, and I recently saw a discussion about this. Since I don't know about double precision numbers, and don't know how Aurora handles these calls, can I use atof() in Aurora?

Ionic Wind Support Team

Yes.

atof() actually returns a DOUBLE type.  When declare as CDECL Aurora knows that the double return is in st0

Paul.
Ionic Wind Support Team