Re: Compressed Linetables

new topic     » goto parent     » topic index » view thread      » older message » newer message
PeteE said...

I didn't think using negative numbers for line number offsets would work very well with arithmetic coding, so I was thinking two lists of positive numbers would be better. I've always wanted to implement arithmetic coding, so I'll have a stab at it when I get home from work.

As long as you are aware that the above table is

   {skip,code, 
    skip,code,code, 
    skip,code,code,code, 
    skip,code, 
    skip,code,code,code, 
    skip,... 
There's no pattern, other than someone's coding/spacing/commenting style, plus any lines the compiler could completely optimise away. There may, in fact, not be any skips at all, but if there are present, they are never consecutive but instead always separated by one or more code offsets(/sizes). If you split it into two lists it might be difficult if not impossible to recombine them correctly.

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu