[LLVMdev] Being able to know the jitted code-size before emitting

Evan Cheng evan.cheng at apple.com
Wed Apr 16 10:40:06 PDT 2008


On Apr 16, 2008, at 1:14 AM, Joachim Durchholz wrote:

> Am Mittwoch, den 16.04.2008, 00:05 -0700 schrieb Evan Cheng:
>> Hrm. Are there machines where
>> instructions may not be byte sized?
>
> The iAPX 432 had a bitstream format.
> See http://en.wikipedia.org/wiki/Intel_iAPX_432 .
> In a nutshell: the processor was a failure due to many reasons, the
> bitstream format among them though not particularly prominent.
>
>>> +static unsigned sizeGlobalAddress(bool dword) {
>>> +  if (dword)
>>> +    return 8;
>>> +  else
>>> +    return 4;
>>> +}
>>
>> How about?
>> return dword ? 8 : 4;
>
> Why?
> (Just wondering, I'd be happy with either style if I were to review  
> the
> code.)

Purely a stylistic preference. Many of the reviewers, like myself, are  
quite picky about these kind of stuff. :-)

Evan

>
>
>
> Regards,
> Jo
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list