[Oberon] Exported procedures in object file

eas lab lab.eas at gmail.com
Mon May 25 04:36:10 CEST 2015


> How do I write out exported procedures with parameters from object file
> using AOS ?

? "write out":
* to live execute <- no: export is not applicable.
* to compile <- yes apparently.

Required parameters are contained in *.Obj.
[wily for linux based on plan9 - copied from ETHO; is good for these
lisp-like tricks]

A most simple <parameter> from *.Obj could be <size of *.Obj>
But let's go deeper.

Here we see the weakness of OberonCode:
why don't/can't we ever use:

PROC XprtedProc(FileSize(Fl1) - FileSize(Fl2) + Count(Ret,Fl1)): Magic;

  where Count(Ret,Fl1) is the count of the <ret instruction> in *.Obj,
 obtained via: Decoder.Open Fl1.Obj

== Chris Glur.



More information about the Oberon mailing list