You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the test or target application crashes with an "illegal instruction" exception [after copying to an older system], rebuild with `CGO_CFLAGS` environment variable set to <nobr>`-O -D__BLST_PORTABLE__`</nobr>. Don't forget <nobr>`-O`</nobr>!
While blst doesn't really benefit from -O2 because it's mostly assembly, this affects the whole Golang project that uses blst. The default value is -O2 (check with go env) and changing it to -O (-O1) could cause projects to be slower than normal.
The text was updated successfully, but these errors were encountered:
After running generate.py, <nobr>`go build`</nobr> and <nobr>`go test`</nobr> can be run as usual. Cgo will compile `server.c`, which includes the required C implementation files, and `assembly.S`, which includes appropriate pre-generated assembly code for the platform. To compile on Windows one has to have MinGW gcc on the `%PATH%`.
Instead of
-O -D__BLST_PORTABLE__
, I think the recommendation should be-O2 -D__BLST_PORTABLE__
.blst/bindings/go/README.md
Line 18 in 3dd0f80
While blst doesn't really benefit from
-O2
because it's mostly assembly, this affects the whole Golang project that uses blst. The default value is-O2
(check withgo env
) and changing it to-O
(-O1
) could cause projects to be slower than normal.The text was updated successfully, but these errors were encountered: