On Sunday 02 October 2005 10:00, [EMAIL PROTECTED] wrote:
> >On Fri, Sep 30, 2005 at 10:09:40AM +1000, O Plameras wrote:
> >  
> >
> >> .... and as C is closely bound
> >>to hardware architecture you must have said something about these data
> >>    
> >
> >Actually, C is not necessarily that closely bound to hardware
> > architecture.
> >
> >  
>
> The the following C program illustrates the relationship of C and
> hardware architecture on
> 16-bit and 32-bit (Two different architectures).  We cannot use 32-bit
> and 64-bit (AMD) to
> illustrate because the int size are the same in both. This is an
> aberration for AMD CPUs, I
> think.

NO IT DOES NOT!!!!
It shows how the compiler writer CHOOSE to implement. He'd be daft to NOT but 
she is not constrained, except by the basic rules (ints are not longer than 
longs etc)

Hence no abberation is present. Likewise the POSIX C does not mandate struture
alignment.

James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to