reilabs / llvm-to-cairo

Efforts to compile LLVM bytecode to run on top of the CairoVM and hence execute provably on Starknet
http://starknet.io
Apache License 2.0
1 stars 0 forks source link

Design the ALU #27

Open ktemkin opened 5 days ago

ktemkin commented 5 days ago

Description

At the level of the CPU, arithmetic is not just the actual mathematical operations on numbers. The ALU has to encompass all of the operations and state that is expected of an ALU, including endianness convention, uint-to-float conversions, int-to-float conversions, int-to-int conversions, uint-to-int conversions, int-to-uint conversions.