mailing list of musl libc
 help / color / mirror / code / Atom feed
* glibc vs musl sizeof types
@ 2014-03-11 12:16 Szabolcs Nagy
  2014-03-11 18:26 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Szabolcs Nagy @ 2014-03-11 12:16 UTC (permalink / raw)
  To: musl

i did sizeof comparisions of most structs on i386, x86_64, mips, arm, powerpc
using embedian cross compilers vs musl-cross

(embedian toolchain is old though: gcc-4.4, glibc-2.13, binutils-2.20)

http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.arm.diff
http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.i386.diff
http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.mips.diff
http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.powerpc.diff
http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.x86_64.diff

struct rusage and struct sysinfo are known to have
extra space on musl, struct tftphdr is not "packed"
on musl and struct crypt_data is huge on glibc
other diffs may or may not be an issue


the test code if you want to try it on other arch:

http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=sizeof.c

struct user_* are not avail on most archs (other than x86)
nor sys/reg.h so those should be commented out
(cflags is -std=gnu99, the diff is diff -U1 glibc musl >sizeof.diff)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-11 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11 12:16 glibc vs musl sizeof types Szabolcs Nagy
2014-03-11 18:26 ` Rich Felker
2014-03-11 19:29   ` John Spencer
2014-03-11 19:49     ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).