From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-03-06 23:22:59
Hi! On Thu, Mar 06, 2003 at 04:36:41PM +0100, Christian Krüger wrote: > It would also be 'funny' to return class-objects - Remember: cc65 doesn't > support even 'struct' returns. Well in fact, it does. It's severely limited, however: Structs must have 1, 2 or 4 bytes, and currently only functions written in assembler can return structs. Adding support for passing structs by value wouldn't be too difficult. Struct return (aprt from the above) needs much more work, because the caller has to allocate stack space for the returned struct and must cleanup after use. > It would be of course interessting how much memory is left when IEEE is > fully supported... (with <math.h>) The standard does not require a "double" to have 64 bit, and it does not require a "double" to cover a greater numeric range than a "float". Which means that one 32 bit floating point type could be used for both. 32 bit IEEE floating point support should be less than 5K, I think (which is still a lot, but not really bad). Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-03-06 23:23:08 CET