May 21, 2024, 04:28:14 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


The CDECL calling convention

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

Previous topic - Next topic

0 Members and 1 Guest 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