示例#1
0
        public object VisitSizeof(SizeofExpression sizeOf)
        {
            var bits        = platform.GetBitSizeFromCBasicType(CBasicType.Int);
            var granularity = platform.Architecture.MemoryGranularity;

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