pro64-contrib
[Top] [All Lists]

RE: Question concerning function calls and pointers in Whirl

To: "'Benedict R. Gaster'" <benedict.gaster@xxxxxx>, pro64-contrib@xxxxxxxxxxx
Subject: RE: Question concerning function calls and pointers in Whirl
From: "Chan, Sun C" <sun.c.chan@xxxxxxxxx>
Date: Wed, 20 Jun 2001 13:43:44 -0700
Sender: owner-pro64-contrib@xxxxxxxxxxx

> -----Original Message-----
> From: Benedict R. Gaster [mailto:benedict.gaster@xxxxxx]
> Sent: Wednesday, June 20, 2001 8:08 AM
> To: benedict.gaster@xxxxxx; pro64-contrib@xxxxxxxxxxx
> Subject: RE: Question concerning function calls and pointers in Whirl
> 
> 
> 
> 
> > Here here the argument to the Whirl node VCALL is still U4PARM, as
> expected,
> > but its type now has a size of 8 bytes, rather than 4!
> 
> I think it should have read "alignment" not "size", as 
> looking in the symbol
> table (-st) this seems to be the difference. Does this mean 
> that function
> arguments are getting 8 byte aligned? If so is it possible to 
> stop this?
> 

This is part of the ABI. Besides, even if you do that, you need to be
careful about
doubles as parameters. if you ended up with two kinds of alignments, you'll
find yourself with a lot of unnecessary complexity and bugs. Think about
vararg also.


<Prev in Thread] Current Thread [Next in Thread>