[cfe-dev] generate 48bits size for C int type
gamma_chen
gamma_chen at yahoo.com.tw
Mon Sep 9 21:00:51 PDT 2013
Eli,
Thank your kind help. We can make int type with i48 now even though the alignment of i48 cannot set to 48 (it only can accept value is the power of 2 according we tried).
Jonathan
________________________________
寄件者: Eli Friedman <eli.friedman at gmail.com>
收件者: gamma_chen <gamma_chen at yahoo.com.tw>
副本: "cfe-dev at cs.uiuc.edu" <cfe-dev at cs.uiuc.edu>; "vijay.daultani at gmail.com" <vijay.daultani at gmail.com>
寄件日期: 2013/9/10 (週二) 2:46 AM
主旨: Re: [cfe-dev] generate 48bits size for C int type
On Sun, Sep 8, 2013 at 7:29 PM, gamma_chen <gamma_chen at yahoo.com.tw> wrote:
Is it possible to generate 48 bits size for C int type instead of the default size 32 bits? Can someone help me, please?
>
>
>
Properties of a target like sizeof(int) are specified in the TargetInfo class; see clang/lib/Basic/Targets.cpp .
Note that it's possible you'll run into other issues if you try to specify non-power-of-two integer types; it should work in theory, but nobody has ever tried it as far as I know.
-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130910/498a4146/attachment.html>
More information about the cfe-dev
mailing list