Exemplo n.º 1
0
        public object VisitSizeof(SizeofExpression sizeOf)
        {
            var bits        = platform.GetBitSizeFromCBasicType(CBasicType.Int);
            var granularity = platform.Architecture.MemoryGranularity;

            return((bits + (granularity - 1)) / granularity);
        }
Exemplo n.º 2
0
 public object VisitSizeof(SizeofExpression sizeOf)
 {
     return(platform.GetByteSizeFromCBasicType(CBasicType.Int));
 }
Exemplo n.º 3
0
 public object VisitSizeof(SizeofExpression sizeOf)
 {
     return(4);       //$BUGBUG:
 }