bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11087: vector limitation in compiling to bytecode


From: Ian Price
Subject: bug#11087: vector limitation in compiling to bytecode
Date: Fri, 06 Jul 2012 07:52:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Andy Wingo <address@hidden> writes:

> On Sat 24 Mar 2012 21:09, Ian Price <address@hidden> writes:
>
>> ;;; ERROR: In procedure bytevector-u8-set!: Value out of range: 390
>> vector constant containing 100000 values
>>
>> This limitation is documented, and somewhat reasonable, but on IRC mark
>> weaver asked me to file a bug anyway, since he thinks the assembler
>> should have a fall back plan.
>
> I agree with Mark.
>
> For what it's worth, if the vector is really constant (e.g. just
> composed of immediates), the RTL VM will emit the whole thing
> statically.  Otherwise it will emit code to allocate a vector
> of the right size at init time, initializing its elements with
> individual instructions.   This latter strategy is probably the right
> thing to do with the Guile 2.0 VM.
In my case, it was completely static. I had generated the vector from
another file, of existing data. It's good to hear this will work in the
future rtl based guile.

Thanks

-- 
Ian Price

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]