P
Pavel A.
Hello,
What is equivalent of __unaligned attribute in GNU C?
I've searched for some time and it seems that it just does not exist...
/*
For HP and new Microsoft compilers it works this way:
long_pointer = (some unaligned address)
long_value = (* (__unaligned long *) long_pointer );
This causes the compiler to emit code that gets the value
in some slow but sure way, but avoiding exceptions
*/
No need to suggest workarounds please...
Regards
--PA
What is equivalent of __unaligned attribute in GNU C?
I've searched for some time and it seems that it just does not exist...
/*
For HP and new Microsoft compilers it works this way:
long_pointer = (some unaligned address)
long_value = (* (__unaligned long *) long_pointer );
This causes the compiler to emit code that gets the value
in some slow but sure way, but avoiding exceptions
*/
No need to suggest workarounds please...
Regards
--PA