Skip to content
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

Make big endian archs work #883

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Oct 17, 2023

Fixes #882 #103

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

@bettio bettio changed the title Build and test on a big endian arch Make big endian arch work Oct 17, 2023
@bettio bettio changed the title Make big endian arch work Make big endian archs work Oct 17, 2023
As a temporary fix just abort on an invalid iff. As a long term approach
an error code should be returned.

Signed-off-by: Davide Bettio <[email protected]>
@bettio bettio force-pushed the add-big-endian-support branch 2 times, most recently from edea613 to 47a7784 Compare October 21, 2023 17:58
Use `__BYTE_ORDER__` == `__ORDER_BIG_ENDIAN__`, instead of `#ifdef`.
Also add missing 64 bit macros.

Signed-off-by: Davide Bettio <[email protected]>
Use s390x as big endian arch, since it is the easiest to use for testing
purposes.

Signed-off-by: Davide Bettio <[email protected]>
@bettio bettio merged commit fa000c3 into atomvm:master Oct 23, 2023
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Big endian support
2 participants