gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving along with mc


From: Benjamin Kowarsch
Subject: Re: Moving along with mc
Date: Fri, 23 Jul 2021 21:10:21 +0900

Hi John

On Fri, 23 Jul 2021 at 07:35, john o goyo <jog37@riddermarkfarm.ca> wrote:

Said module states that the compiler will inline SHIFT() if the argument
fits into a word but mc does not recognise SHIFT().

Short of explicitly adding shifts inside SYSTEM.mod, is there something
that can be done?

I had to implemented all those low level (and other) functions for our bootstrap compiler (m2bsk) and preprocessor (m2pp) from scratch without any dependencies on libraries/compilers so that it is all portable across compilers and works with both PIM and ISO compilers. If you need low level bit operations feel free to borrow what you need:

https://github.com/m2sf/m2bsk/blob/master/src/lib/CardBitOps.def
https://github.com/m2sf/m2bsk/blob/master/src/lib/imp/CardBitOps.mod

https://github.com/m2sf/m2bsk/blob/master/src/lib/IntBitOps.def
https://github.com/m2sf/m2bsk/blob/master/src/lib/imp/IntBitOps.mod

regards
benjamin


 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]