(unknown charset) Re: [BLACKBOX] ARRAY as CONSTANT

From: (unknown charset) Oleg N. Cher <"Oleg>
Date: Thu, 14 Feb 2008 05:04:45 +0200

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

Dear Aubrey,

>What are the machine code sizes to do the task in Delphi?

Delphi and C compilers, if we define constant array
DO NOT duplicate array data twice.
For example:

CONST a = "abcdefgh";

in Delphi this constant strig will be ONE in code,
and in data. (This is critical if arrays are large.)

BlackBox compiler saves array data one step:
in machine code, and two step - in memory, when code runned.
The uneffective use of memory. (It's not good for embedded
development.)

Rene A. Krywult proposes use:

InitString("00 00 00 61 00 00 00 00");

Too, I ask you all: where is efficiency, when we encode
the byte of data by a few bytes of code?


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


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-878308152_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERlYXIgQXVicmV5LFxwYXINClxwYXINCj5XaGF0
IGFyZSB0aGUgbWFjaGluZSBjb2RlIHNpemVzIHRvIGRvIHRoZSB0YXNrIGluIERlbHBoaT9ccGFy
DQpccGFyDQpEZWxwaGkgYW5kIEMgY29tcGlsZXJzLCBpZ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lbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JP
WCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0AAADAZg==
----boundary-LibPST-iamunique-878308152_-_---
Received on Thu Feb 14 2008 - 04:04:45 UTC

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