Hello Tristan,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">> How does EFI describe structures if the pointer size can change?  This<br>

> shouldn't be a harder problem than C struct -> llvm struct.  I assume<br>
> the EFI bytecode has some way to describe them.  What is it?<br>
<br>
</div>EFI describe structures almost like C.<br>
<br>
There are EBC instructions that have two immediates: one for 32bits pointers and one for 64bits pointers.<br></blockquote><div><br>I have read the uefi specification 2.3 and survey the code of EBC VM<br>It seems that there is no relationship between the EBC byte code and the processor.<br>
like CMPI[32|64][w|d]eq {@}R1 {Index16}, Immed16|Immed32,<br>choosing which form is not depending on the processor but compiler(means 32-bit processor could even support 64-bit operand)<br>Does it more feasible to implement it??<br>
<br>thanks<br><br>ching<br></div></div>