Files
mruby-mruby/include/mruby
dearblue 42513d61fd Need to place static proc objects into 8-byte alignments
Static proc objects defined as methods may be placed in 4-byte alignments in 32-bit environments.
This may be misinterpreted as an immediate value depending on the address.

Since C11 and C++11 have additional language features for byte alignment, corresponding compilers use them to define the `mrb_alignas()` macro.
For earlier compilers, they use their own extensions to define the `mrb_alignas()` macro.

GCC supports `__attribute__((aligned(alignment)))` since at least version 2.95.3 (1999).
https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#IDX305
According to GPT-4, support was added in version 2.7 (1995).

It is not known which version of Visual C++ added support for `__declspec(align(n))`.
According to GPT-4, at least Visual C++ 6.0 (1998) seems to support it.
Also, the documentation of past Intel C/C++ compilers that support `__declspec(align(n))` makes reference to support with Visual C++ 4.2 (1996).
https://www.intel.com/content/dam/www/public/ijkk/jp/ja/documents/developer/ccomp40j.pdf
2024-09-01 20:28:34 +09:00
..
2022-01-02 11:52:19 +09:00
2024-06-27 22:46:13 +02:00
2024-06-27 22:46:13 +02:00
2023-05-03 22:12:59 +10:00
2023-09-09 14:31:13 +09:00
2024-04-26 22:05:45 +09:00
2022-12-03 14:26:05 +09:00
2024-05-30 21:09:49 +09:00
2019-08-18 20:12:44 +09:00
2024-08-13 17:27:08 +09:00