This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: ARM compiler misbehaves ?


>> Last time I checked (with the ARM and H8 gcc's) you could. It's
>> just that dereferencing the pointer won't work right. Copying
>> to/from the value of the pointer with memcpy() works fine.
>> 
>
>No, even that isn't guaranteed, since the compiler is entitled to "know"
>the implementation of memcpy, and therefore to implement it inline.

Is this true?  I thought memcpy was guaranteed to work on unaligned 
addresses regardless of whether it is inline.  
Derek


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]