Generating java source code

Erik van Oosten e.vanoos... at chello.nl
Tue Feb 13 16:12:29 UTC 2007


Ah! That makes sense.

Thanks for the explanation.

Regards,
    Erik.


On 13 feb, 16:26, Adrian Thurston <thurs... at cs.queensu.ca> wrote:
> Hi Erik, the message you read probably neglected to mention that the
> problem is with array initialization.
>
> private static byte[] array = [ 1, 2, 3, 4, ... ];
>
> Java initializes arrays by creating a function.
>
> init()
> {
>         array[0] = 1;
>         array[1] = 2;
>         ...
>
> }
>
> If there are too many elements you get the "code too large" error. This
> issue has been fixed in trunk however. Ragel now generates the
> initialization functions directly, and splits them when they get big.
>
> Adrian



More information about the ragel-users mailing list