[LLVMdev] variable sized structs in LLVM

holger krekel hpk at trillke.net
Mon Jun 20 08:08:02 PDT 2005


Hi Reid, 

On Mon, Jun 20, 2005 at 07:08 -0700, Reid Spencer wrote:
> The thing you're missing is that LLVM's primitive types have well known,
> fixed sizes that are not target dependent. A ulong is 8 bytes. A uint is
> 4 bytes. A ushort is 2 bytes. Etc. and always.

Don't aligning rules make it hard to compute the size of a
whole struct from the sizes of it's members? 
And what about pointers? 

cheers, 

    holger




More information about the llvm-dev mailing list