(unknown charset) [BLACKBOX] ARRAY as CONSTANT

From: (unknown charset) Oleg N. Cher <"Oleg>
Date: Mon, 11 Feb 2008 10:57:59 +0200

----boundary-LibPST-iamunique-320847628_-_-
Content-type: text/plain

Dear Marc Frei
& Oberon microsystems crew,

well, BlackBox is useful. But now I have a problem
with using big initialized arrays.

As you know, we can write in Delphi :

CONST
  a: ARRAY [0..4] OF INTEGER = (1, 2, 3, 4, 5);

And we have a constantly array, initialized in compile-time.

In standard Oberon-2 it is not so good. But we can write:

PROCEDURE -Resource;
  000H,000H,001H,...;

...

The array accessible with :

  SYSTEM.GET(SYSTEM.ADR(Resource) + index, x)

Not very nice method, isn't it?
Eh...

I write in BlackBox :

PROCEDURE [code] Resource
  000H,000H,001H,...;

And MAXIMAL possible size of this procedure is 254 bytes :-(
If it is greater than 254, here is compiler error :

  more actual than formal parameters

With this experiments, I understand, that Oberon-2 and
BlackBox can not works with big arrays, initialized in
compile-time. And it's strange.
Of course, I can initial array in run-time, but it is
a very big manual work and inefficient large module code.

Please, help me,
must be a better method.

Thanks for all.


Oleg N. Cher,
Colossoft Research.
allot{([at]})nowhere.xy
2008-02-11


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-320847628_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRcc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dXJlIGlzIDI1NCBieXRlcyA6LShccGFyDQpJZiBpdCBpcyBncmVhdGVyIHRo
YW4gMjU0LCBoZXJlIGlzIGNvbXBpbGVyIGVycm9yIDpccGFyDQpccGFyDQogIG1vcmUgYWN0dWFs
IHRoYW4gZm9ybWFsIHBhcmFtZXRlcnNccGFyDQpccGFyDQpXaXRoIHRoaXMgZXhwZXJpbWVudHMs
IEkgdW5kZXJzdGFuZCwgdGhhdCBPYmVyb24tMiBhbmRccGFyDQpCbGFja0JveCBjYW4gbm90IHdv
cmtzIHdpdGggYmlnIGFycmF5cywgaW5pdGlhbGl6ZWQgaW5ccGFyDQpjb21waWxlLXRpbWUuIEFu
ZCBpdCdzIHN0cmFuZ2UuXHBhcg0KT2YgY291cnNlLCBJIGNhbiBpbml0aWFsIGFycmF5IGluIHJ1
bi10aW1lLCBidXQgaXQgaXNccGFyDQphIHZlcnkgYmlnIG1hbnVhbCB3b3JrIGFuZCBpbmVmZmlj
aWVudCBsYXJnZSBtb2R1bGUgY29kZS5ccGFyDQpccGFyDQpQbGVhc2UsIGhlbHAgbWUsXHBhcg0K
bXVzdCBiZSBhIGJldHRlciBtZXRob2QuXHBhcg0KXHBhcg0KVGhhbmtzIGZvciBhbGwuXHBhcg0K
XHBhcg0KXHBhcg0KT2xlZyBOLiBDaGVyLFxwYXINCkNvbG9zc29mdCBSZXNlYXJjaC5ccGFyDQph
bGxvdEB1a3IubmV0XHBhcg0KMjAwOC0wMi0xMVxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpU
byB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9Y
IiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAAAAAA
----boundary-LibPST-iamunique-320847628_-_---
Received on Mon Feb 11 2008 - 09:57:59 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:05 UTC