From 20e936bc13bd0423411224c4b1dad40be27dba11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 21 Aug 2026 13:35:39 +0200 Subject: [PATCH] Add Big Endian architecture support instructions Added instructions for building with Big Endian architecture support. --- docs/docs/building.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docs/building.md b/docs/docs/building.md index 0bf877463..0ced0fea7 100644 --- a/docs/docs/building.md +++ b/docs/docs/building.md @@ -26,6 +26,17 @@ make This will build the `qjs` and `qjsc` executables and other test tools. Head over [here](./cli) for instructions on how to use them. +## Big Endian architecture support + +When compiling for a big endian target the bundled bytecode must be regenerated. The generated bytecode is endian dependent +and the currently shipped source builds have little endian bytecode. To regenerate it: + +```bash +make codegen +``` + +Then proceed with `make` as normal. + ## Amalgamated builds The amalgamated build rolls individual source files into a single big file.