self error: 'A block compiles more than 1K bytes of code'

Randal L. Schwartz merlyn at stonehenge.com
Sun Oct 21 01:17:48 UTC 2007


>>>>> "Rob" == Rob Withers <reefedjib at yahoo.com> writes:

Rob> In ParseNode>>#emitLong:code:on:, this error is being signalled for me
Rob> and my new transform code.  I think this is emitting a long jump.  Is
Rob> 1024 the limit a long jump can make and so this represents a hard error?
Rob> Would it be possible to code a bytecode (say 127) to use 2 extra bytes
Rob> for an extraLongJump instruction to get around this?

Is it possible that the warning is there for a good reason, as in perhaps you
should be refactoring the method so that it doesn't have so much source code?

The more I edit long methods, the more I realize how cool short methods
are. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the Squeak-dev mailing list