[Oberon] FPGA - Bit reversal

Jörg joerg.straube at iaeth.ch
Sat Sep 23 08:59:15 CEST 2017


No, I disagree.
So far Oberon isn’t bothered with endianess.

With BITS as non-SYSTEM function, code compiles but does not run dependent on the endianess of the CPU.

With IMPORT S:=SYSTEM and TYPE I=INTEGER you can write the BITS(s) equivalent S.VAL(I, s);
with the benefit of being flagged as potentially non-portable.

br
Jörg

> Am 23.09.2017 um 01:41 schrieb Alexander Ilin <ajsoft at yandex.ru>:
> 
> 23.09.2017, 01:19, "Skulski, Wojciech" <skulski at pas.rochester.edu>:
>> Your "wst := {0..31} - wst;" still depends on BITS. My conclusion stands: BITS should be a part of the language.
> 
>  I agree, BITS should be in the language.
> 
> ---=====--- 
> Александр
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list