develooper Front page | perl.perl6.internals | Postings from February 2002

Re: padding of FLOATVALs in CONSTANT section of bytecode?

Thread Previous | Thread Next
From:
Bryan C. Warnock
Date:
February 11, 2002 12:58
Subject:
Re: padding of FLOATVALs in CONSTANT section of bytecode?
Message ID:
0GRD00046ZKO8G@mtaout45-01.icomcast.net
On Monday 11 February 2002 15:37, Gregor N. Purdy wrote:
> IIRC sizeof(opcode_t) === 4, since it is required that opcode_t be 32
> bits. So, that 4 is supposed to be a 4, although turning it into a
> symbolic constant is not a bad idea. Using sizeof(opcode_t) as that
> constant isn't evil either, although I don't think its necessary.

Nope.  sizeof(opcode_t) >= 32 and sizeof(opcode_t) <= sizeof(INTVAL).
The *contents* are limited to 32 bits, but the container is not.  (64-bit 
efficiency hack.)


-- 
Bryan C. Warnock
bwarnock@capita.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About