1. Re: Encrypting (and bit-shifting)
- Posted by Ralf Nieuwenhuijsen <nieuwen at POP.XS4ALL.NL> Jul 11, 1997
- 607 views
> I am fascinated by this discussion. Does it make a difference whether > Euphoria actually shifts bits, integer divides or float divides? I would > have estimated that there would be more overhead in analyzing the operands > than just going ahead and doing the divide. Especially if the divisor is > not a constant. At this point it is only done during pre-compiling. So if itsn't a constant 2 it will not use shifting... Maybe in a future version we can write pre-compile routines.. that is: instead of having the same environment each time, we could have precompile routines that read euphoria code in and write out some sort of inbuilt close to ASM but far away from machine independent stuff code, which is then executed/compiled to real machinecode with optimizations for the current machine... different pieces of ASM that do the SAME thing have a really different speed on different computers... (so the machine and video architecture would be saved in .E routines instead of in the executor (ex.exe) itself. That would be heaven.... (machine code optimizations where it is needed and flexibility elsewhere!!) > John Kinne -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ~~~~>> Ralf Nieuwenhuijsen <<~~~~ ~~~>> nieuwen at xs4all.nl <<~~~~