wouldn't a pointer be register size?
-tim
Kevin DeKorte wrote:
Isn't INT the register size by default?
sizeof(int) = register size?
Kevin
On Monday 11 April 2005 07:51 pm, MQ wrote:
Does anyone know of a reliable way of obtaining the register size of a
processor? I built a GUI that saves/loads binary data and I'm contemplating
the option of making it portable to other architectures (currently intel 32
bit). My first idea is simply to use something like this although I don't
know if this is reliable and/or sloppy:
typedef unsigned char byte;
byte word[sizeof(float)];
Thanks!
MQ
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
------------------------------------------------------------------------
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list