Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2301 Better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Sep 27, 2024
1 parent 5ce4752 commit 8f8bf24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/website/advanced/iceoray-on-32-bit.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ struct Foo {
};
```
As long as the bitness it the same, one does not have to care.
But when 32-bit and 64-bit applications are connected via shared memory, both applications have to agree to a common layout, otherwise the applications will misbehave.
In the worst case, the application keeps running with invalid data and in the best case it leads to an immediate segmentation fault.
As long as the applications share the same bitness, there is no need for special consideration.
However, when connecting 32-bit and 64-bit applications via shared memory, both must adhere to a common memory layout.
If the layout differs, it can lead to unpredictable behavior and errors in the applications.
The simplest way to fix this specific alignment issue, is to use the `-malign-double` flag, which enforces an 8 byte alignment boundary for 64-bit data types on 32-bit architectures.
Expand Down

0 comments on commit 8f8bf24

Please sign in to comment.