Re: [Oberon] Slim binaries / OMI / Juice implementation details availability
From: Erik Terpstra [mailto:erterpstra@gmail.com] Sent: Tuesday, 4 September 2018 12:33 AM To: ETH Oberon and related systems; chris@cfbsoftware.com Subject: Re: [Oberon] Slim binaries / OMI / Juice implementation details availability
Thank you, I have been able to run the slim binaries enabled compiler using the win32 version on an old laptop.
I am now able to generate hexdumps of actual slim binaries to compare them with the compiler/loader source code and the description in Michael Franz's dissertation.
Some more digging around unearthed a Slim Binary Decompiler that supposedly decodes a Slim Binary (.Obj) file back into an Oberon-2 (.Mod) source format. http://caesar.ics.uci.edu/laski/SlimBinaryDecoder.html The Mar 08 2000 snapshot on web.archive.org has the C++ source code. Regards, Chris Burrows CFB Software http://www.astrobe.com
Imagin a matrix consisting of "0" and "1". Now I want to separate the islands of "1" and get a handle on the indices of each island. i.e. : I want to transform this: 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 into something like this: 0 0 0 0 0 1 0 2 2 0 3 0 0 0 0 0 0 0 1 0 2 0 0 3 0 6 0 0 0 0 0 1 0 2 0 4 0 0 6 0 0 0 0 1 1 0 0 0 4 0 5 0 0 0 0 1 1 0 0 0 0 0 0 5 0 0 0 0 1 1 1 1 0 0 0 0 0 0 I only half-understand, what Wirth writes on trees in his green Oberonbook. But it looks to me like a tree problem. Thanks and regards, Dieter -- ____________________________________ Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal
Ursprüngliche Nachricht Von: d.gloetzel@web.de Gesendet: 5. September 2018 3:57 nachm. An: oberon@lists.inf.ethz.ch Antworten: oberon@lists.inf.ethz.ch Betreff: [Oberon] tree programming I found the example hard to read, i hope that helps people. A written description of the rules would have been nice. 0 0 0 0 0 # 0 # # 0 # 0 0 0 0 0 0 0 # 0 # 0 0 # 0 # 0 0 0 0 0 # 0 # 0 # 0 0 # 0 0 0 0 # # 0 0 0 # 0 # 0 0 0 0 # # 0 0 0 0 0 0 # 0 0 0 0 # # # # 0 0 0 0 0 0 into something like this: 0 0 0 0 0 # 0 & & 0 * 0 0 0 0 0 0 0 # 0 & 0 0 * 0 + 0 0 0 0 0 # 0 & 0 € 0 0 + 0 0 0 0 # # 0 0 0 € 0 § 0 0 0 0 # # 0 0 0 0 0 0 § 0 0 0 0 # # # # 0 0 0 0 0 0
Hi Dieter I wouldn't call this problem a "tree problem". It rather looks like a coloring problem: how to fill all connected pixels with the same color? I would try to do it with a recursive procedure although other approaches do exist.. br Jörg Am 05.09.18, 15:57 schrieb "Oberon im Auftrag von Dieter" <oberon-bounces@lists.inf.ethz.ch im Auftrag von d.gloetzel@web.de>: Imagin a matrix consisting of "0" and "1". Now I want to separate the islands of "1" and get a handle on the indices of each island. i.e. : I want to transform this: 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 into something like this: 0 0 0 0 0 1 0 2 2 0 3 0 0 0 0 0 0 0 1 0 2 0 0 3 0 6 0 0 0 0 0 1 0 2 0 4 0 0 6 0 0 0 0 1 1 0 0 0 4 0 5 0 0 0 0 1 1 0 0 0 0 0 0 5 0 0 0 0 1 1 1 1 0 0 0 0 0 0 I only half-understand, what Wirth writes on trees in his green Oberonbook. But it looks to me like a tree problem. Thanks and regards, Dieter -- ____________________________________ Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Wed, 5 Sep 2018 15:57:16 +0200 Dieter <d.gloetzel@web.de> wrote:
I only half-understand, what Wirth writes on trees in his green Oberonbook.
Hi, I wonder what is this `Green Book'? Is it the one titled `Steps beyond Pascal and Modula? -- Tomas Kral <thomas.kral@email.cz>
Thanks for your helpful contributions. I was on a wrong track, thinking about trees. It is definitely a recursive coloring problem. @ Tomas: Yes , I was mentioning : "Steps beyond Pascal and Modula" Regards, Dieter Am 05.09.2018 um 20:16 schrieb Tomas Kral:
On Wed, 5 Sep 2018 15:57:16 +0200 Dieter <d.gloetzel@web.de> wrote:
I only half-understand, what Wirth writes on trees in his green Oberonbook. Hi, I wonder what is this `Green Book'? Is it the one titled `Steps beyond Pascal and Modula?
-- ____________________________________ Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72
participants (5)
-
Chris Burrows -
Dieter -
Johann-Tobias Schäg -
Jörg -
Tomas Kral