Пример #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:
 }