Re: Why TIME's ud?

From: Elizabeth D. Rather <erather_at_forth.com>
Date: Tue, 27 Mar 2001 10:15:27 -0800

Right. We work very hard at maintaining portability, which benefits us and
our customers with multiple processors as well. If you look at your \Src
directory, _all_ of the files that are in this directory (and not in
MCU-specific subdirectories) are shared among all the processors we
support, from low-end 8-bitters like the 8051 and AVR to various 32-bit
platforms.

As to your question, the answer depends upon whether you think your company
may at some point in the future bring out a low-end product line based on
16-bit processors that may need to run some of this code.

Cheers,
Elizabeth

At 08:07 AM 3/27/01 -0600, you wrote:

>Nevermind. I see:
>
>5.3.1 Date and Time of Day Functions
>...
>SwiftX stores time information internally as an unsigned, double number
>repre-senting
>seconds since midnight. There are 86,400 seconds in a day, so a double
>number is required for portability across 16- and 32-bit implementations.
>
>Since I need to keep a log of time on a 32-bit system, I'm wondering if I
>aught to store the whole double...
>
>-----Original Message-----
>From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
>Of Dennis W. Bulgrien
>Sent: Tuesday, March 27, 2001 8:01 AM
>To: Swiftx_at_Forth. Com
>Subject: [swiftx] Why TIME's ud?
>
>
>
>@TIME, (TIME), and .TIME take an unsigned double number ud. When is the
>double utilized since the max number of seconds since
>midnight is 86400? Are the 32-bit folks carrying around an extra zero
>cell for the 16-bit folks?
>--
>Dennis W. Bulgrien, Engineer Mailto:dbulgrien_at_vcsd.com
>VertexRSI, Controls and Structures http://www.vcsd.com
>1915 E. Harrison Road tel: 903 295 1480 x287
>Longview, TX 75604-5438 fax: 903 295 1479
>
>----------------------------------------------------------------------
>swiftx_at_forth.com The SwiftX programming discussion email list
>To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
>For help with listar commands, send subject "help" to listar_at_forth.com
>Archives are located at http://www.forth.com/swiftx -- check them out!
>----------------------------------------------------------------------
>swiftx_at_forth.com The SwiftX programming discussion email list
>To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
>For help with listar commands, send subject "help" to listar_at_forth.com
>Archives are located at http://www.forth.com/swiftx -- check them out!

================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
================================================

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
Received on Tue Mar 27 2001 - 10:36:43 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 02-Sep-2010. Archive updated nightly.