-
Notifications
You must be signed in to change notification settings - Fork 130
Cross compile armhf and s390x builds #1881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6fbc269 to
f7fe2fa
Compare
bettio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have to review "Cross compile for armhf and s390x architectures". Everything else makes sense.
0817321 to
25de66f
Compare
bettio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will merge main into feature/bigint without this PR, however I need to understand if one of those commits fix a bug that I may notice while integrating bigints.
25de66f to
42ee019
Compare
You may want the unaligned sigbus that could hurt some tests with AArch64. |
ced2231 to
4525c46
Compare
10784d2 to
3c52a65
Compare
Signed-off-by: Paul Guyot <[email protected]>
Signed-off-by: Paul Guyot <[email protected]>
Signed-off-by: Paul Guyot <[email protected]>
Also enable parallel compilation (make -j3) and fix circular dependency when building precompiled archives Signed-off-by: Paul Guyot <[email protected]>
3c52a65 to
38234de
Compare
Just in time compilation with armv6m target Continuation of: - #1770 - #1773 - #1833 - #1834 - #1835 - #1890 - #1878 - #1881 - #1887 The target is suitable for Pico, Pico2 and STM32. Benchmark test on a Pico with SMP disabled shows a speed increase from 14% to 62%. | native (w34/jit-arm) | emulated (main) -- d8ecc02 | % -- | -- | -- | -- pingpong_speed_test | 17437587 | 27590085 | 37 % prime_speed_test | 13257293 | 35212412 | 62 % prng_test | 1128949 | 1500967 | 25 % pi_test | 26759537 | 58693061 | 54 % sudoku_solution_test | 6420801 | 7471461 | 14 % sudoku_puzzle_test | 254335968 | 333834045 | 24 % Remark: the current backend requires 64 bits floats. 32 bits floats would need a specific variant. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
Embedded JIT mode for Pico Continuation of: - #1829 - #1838 - #1881 - #1891 - #1893 - #1900 - #1901 - #1903 - #1907 Add the ability to perform just in time compilation directly on Raspberry Pi Pico. Erlang bytecode is compiled to armv6m on the first run and directly executed on subsequent runs. In this PR, the native code compilation does not take advantage of being done on the device, it still generates position independent code. If Erlang modules include `Type` chunk, the same optimizations that happen on the desktop with precompilation could be done on the Pico, however current release (0.7.5) of [`packbeam`](https://github.com/atomvm/atomvm_packbeam) prunes the `Type` chunk. Just in time compilation on the Pico is achieved by: - Adding a flush call after JIT is performed, which is noop on all platforms except on armv6m where we flush the literal pool (normally a noop, though, as the pool should have been flushed earlier). - Updating avm API to fetch the last section named end. - Adding a `jit_stream_flash` for RP2 platform and adding a cache native code mechanism that rely on the avm end section on RP2 to find out where to flash jit code (after the last end) and detect if avm were updated. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
Continuation of:
This cross compilation revealed 32 bits bugs.
erlang:setnode/2that failed on armhf when tested against recent versions of epmdarmhfands390xinstead of emulating compilerThese changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later