[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ArchitectureSpecificsMemo



http://wiki.debian.org/ArchitectureSpecificsMemo

Some suggestions for improving this table:

1. About half of the table is taken up with sizeof information, some
of which could be expressed more concisely. (Are all Debian
architectures ILP32 or LP64? Any rare exceptions could be described in
a footnote.)

2. Perhaps it would be better to reverse the axes, particularly if the
sizeof information is simplified and as more and more architectures
are added.

3. A link to a list of system calls might be useful for some people.

4. I'd like to see some information about va_list added as this
sometimes causes portability problems. For example:

On amd64, va_list is a (struct { ... } [1]) with size 24 and alignment
8. (It's an array, so it turns into a pointer in some circumstances.
You can test whether a va_list is equal to zero, for example.)

On arm64, va_list is a (struct { ... }) with size 32 and alignment 8.
(It's not an array. You can't test whether it's zero.)

On armhf, va_list is a (struct { ...}) with size 4 and alignment 4.
(Have I got that right?)

On i386, va_list is a (char *).

Any thoughts? Vehement objections?

Edmund


Reply to: