16bit vs 32bit

J

Thread Starter

Jiri Baum

Hello,

should the linuxPLC core work in 16-bit integers or 32-bit integers?

Arguments for 16-bit:
- traditional

Arguments for 32-bit:
- greater range for timers and counters
- sounds more modern
- 1000 times 32-bits is basically one i386-linux page


Jiri
--
Jiri Baum <[email protected]>
On the Internet, nobody knows if you are a @{[@{[open(0),<0>]}-1]}-line
perl script...

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
S
On Mon Jan 17 10:41:53 2000 Jiri Baum wrote...
>
>should the linuxPLC core work in 16-bit integers or 32-bit integers?
>
>Arguments for 16-bit:
> - traditional

Many I/O systems we need to interface to are 16 bit oriented.

16 bits has proven to more that adequate in existing practice.

We can allow for 32 bit types where required, IE 32 bit ints for counters by defining the L (long) data type.

>Arguments for 32-bit:
> - greater range for timers and counters
> - sounds more modern
> - 1000 times 32-bits is basically one i386-linux page


--
Stan Brown [email protected] 843-745-3154
Westvaco
Charleston SC.

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Use 32 bit internally. Any real I/O that wants 16 bit should deal with the
conversion itself IE. promote / demote as required in the driver.

On Mon, 17 Jan 2000, Stan Brown wrote:

> On Mon Jan 17 10:41:53 2000 Jiri Baum wrote...
> >
> >Hello,
> >
> >should the linuxPLC core work in 16-bit integers or 32-bit integers?
> >
> >Arguments for 16-bit:
> > - traditional
>
> Many I/O systems we need to interface to are 16 bit oriented.
>
> 16 bits has proven to more that adequate in existing practice.
>
> We can allow for 32 bit types where required, IE 32 bit ints for
> counters by defining the L (long) data type.
> >
> >Arguments for 32-bit:
> > - greater range for timers and counters
> > - sounds more modern
> > - 1000 times 32-bits is basically one i386-linux page


Dave West E-Mail: [email protected]
Semiras Projects Ltd. PGP public key available on request.


_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Top