objeck-lang icon indicating copy to clipboard operation
objeck-lang copied to clipboard

Optimized builds

Open iahung2 opened this issue 9 months ago • 4 comments

For example, AVX2 builds, like https://github.com/zufuliu/notepad2/releases

iahung2 avatar Apr 25 '24 12:04 iahung2

I do not understand: faster builds or a new build systems?

objeck avatar Apr 25 '24 19:04 objeck

I do not understand: faster builds or a new build systems?

Faster binaries.

Please at least search before posting. The keyword is AVX2.

https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2

Compilers have switches to enable advanced optimizations. AVX2 is only mentioned as one of the possible optimizations.

ghost avatar Apr 25 '24 22:04 ghost

I need help understanding the context. On Intel, Objeck uses advanced instruction sets like SSE3. Costly floating point vector operations (i.e., transpose, dot product, etc.) are delegated to the Eignen C++ library, which leverages local hardware like APUs and GPUs. The same goes for ARM64 support.

objeck avatar Apr 28 '24 09:04 objeck

No. This is not about how the JIT compiler of Objeck compiles bytecode into machine code. It's more simple. It's about building the Objeck binaries themselves (e.g: obc, obr,...) with advanced instruction sets like AVX2. It's a compiler switch just like -O3.

ghost avatar Apr 28 '24 21:04 ghost

Added to AMD64 builds for Windows and Linux.

objeck avatar May 07 '24 14:05 objeck