[tremor] Compiling on platforms without 64-bit integer support

Tom Lukasiak tlukasiak at yahoo.com
Wed Sep 11 09:36:34 PDT 2002



Hello,

I saw this issue in a previous post, but I still have some more questions about it.  My DSP platform is dual 16-bit ALU machine.  Since 16-bit and 32-bit arithmetic is directly supported by hardware, the compiler designers allowed 16-bit int and 32-bit long datatypes.  However, they explicitly chose not to support 64-bit integers, because of the great software overhead; floating-point, by the way, is supported by software up to 32-bit arithmetic -- I guess this seemed more of a necessity for ANSI compliance.

In any case, I was wondering about possible suggestions for getting Tremor ported to this compiler.  My idea was to package up two 32-bit ints in a 64-bit meta-struct.  Then, I would have to implement the necessary arithmetic (I think add and subtract are the only ones I saw), and manually replace any algebraic 64-bit arithmetic expressions in the Tremor code to inline function calls (possibly implemented in assembly).  Is this the best way to approach this?  It seems like a lot of mechanical changes that would need to be applied for each Tremor update.

Also, I think I will probably use a Windows-based IDE for the development.  Could I trust that some architecture-specific files, like os.h, os_types.h will for the most part remain unchanged throughout development?  I would suppose that a lot of the current development is focused on the decoding algorithm.  Having set up the machine-specific files once, it would be ideal to update only the truly architecture-generic core algorithm functions.  In respect to my proposed 64-bit emulation approach, this might not be the case.  And what would I gain if I switch to the GNU build tools and use the command line compiler (still Windows, that's the only supported platform)?

Thanks for your help,

Tom

<p><p>---------------------------------
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'tremor-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Tremor mailing list