GCC's "-fno-strict-aliasing"? (Developers)
> As far as I know does the C standard has a few rules about aliassing. An
> alias is e.g. if you have two pointers of different types, then C assumes
> that they can't point to the same memory.
Did you mean something like this?
unsigned long *p1;
unsigned char p2[4]={1,2,3,4};
p1=(unsigned long *)p2;
Is p1 alias of p2? What's wrong on this code? Will it fails to compile if -fno-strict-aliasing enabled? U use such things of retyping very often, eg. when you have a char buffer and you want to access it as a structure.
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- GCC's "-fno-strict-aliasing"? - rr, 17.09.2008, 18:01 ![Open in board view [Board]](img/board_d.gif) ![Open in mix view [Mix]](img/mix_d.gif) - GCC's "-fno-strict-aliasing"? - marcov, 18.09.2008, 10:30- GCC's "-fno-strict-aliasing"? - rr, 18.09.2008, 11:37- GCC's "-fno-strict-aliasing"? - marcov, 18.09.2008, 13:20
 
- GCC's "-fno-strict-aliasing"? - RayeR, 18.09.2008, 14:10
 
- GCC's "-fno-strict-aliasing"? - rr, 18.09.2008, 11:37
- GCC's "-fno-strict-aliasing"? - rr, 25.09.2008, 16:38- GCC's "-fno-strict-aliasing"? - RayeR, 29.09.2008, 17:09
 
 
- GCC's "-fno-strict-aliasing"? - marcov, 18.09.2008, 10:30
 Board view
Board view Mix view
Mix view
