Hi there, I need some assistance. I compiled a short program with the obc compiler. I changed the executable (byte code) manually and now I want to see if it will run on a Linux machine that has no obc installed. Here is the tar file http://fruttenboel.verhoeven272.nl/obc/data/testt.tgz Download it, unpack it and run the executable './testt' This is the source of testt.m: MODULE testt; IMPORT Out; BEGIN Out.String ("Hi there!"); Out.Ln END testt. So your hard disk should be safe... -- Met vriendelijke groeten, Jan Verhoeven http://www.verhoeven272.nl
Download it, unpack it and run the executable './testt'
here's result on UbUntU10.04 ./testt Runtime error: /usr/local/lib/obc/Files.so: cannot open shared object file: No such file or directory in module DynLink In procedure DynLink.Load called from Files.%main called from MAIN p.s.: just found out, OBC means Oxford Oberon-2 compiler. is it worth trying? what shall we do with byte code and why isn't the compiler written in O2? Objective Caml with C for run-time-system, ... with dynamic translation to x86 machine code. and I thought make it as simple as ...
On Thursday 25 November 2010 23:50:10 scruty at users.sourceforge.net wrote:
http://fruttenboel.verhoeven272.nl/obc/data/testt.tgz
Download it, unpack it and run the executable './testt'
here's result on UbUntU10.04
./testt Runtime error: /usr/local/lib/obc/Files.so: cannot open shared object file: No such file or directory in module DynLink In procedure DynLink.Load called from Files.%main called from MAIN
Hmm. I was afraid of that. The testt file is interesting to take a look at. It is a shell script file, with the byte code appended inline. The idea was: if the bytecode needs no more than the objx executable, then the programs can be exchanged across all Linuxes by slightly tampering the first line of the executable. Which isn;t the case. It needs the other files as well and those are in /usr/local/lib/obc Thanks for the help.
p.s.: just found out, OBC means Oxford Oberon-2 compiler. is it worth trying?
I think it is. It compiles to a byte code, with compilers and runtimes for both Linux and Windows. So cross platform Oberon. Free of charge. Spivey is an excentric, like Wirth, but the latter is a friendly excentric... See also http://fruttenboel.verhoeven272.nl/obc/index.html and more specific http://fruttenboel.verhoeven272.nl/obc/triples.html
what shall we do with byte code and why isn't the compiler written in O2?
You need a chicken to lay the first egg. Or a big lab to X-ray a crocodile's edd until a chicklet pops out. Spivey wrote his chicken with the OCaml compiler. There's always a first program that cannot be written in the target language.
Objective Caml with C for run-time-system, ... with dynamic translation to x86 machine code.
I've done tests.... See http://fruttenboel.verhoeven272.nl/obc/obc7.html in the very last table of that page. obc ByteCode is 10 times faster than ACK object code.
and I thought make it as simple as ...
Einstein was not the kind of guy we would like to be friends with. So this quote is probably, like most of his others, without any value. Einstein was rejected by ETHZ. So he went to Bern. -- Met vriendelijke groeten, Jan Verhoeven http://www.verhoeven272.nl
Jan, nice to talk to you again².
p.s.: just found out, OBC means Oxford Oberon-2 compiler. is it worth trying?
I think it is. It compiles to a byte code, with compilers and runtimes for both Linux and Windows. So cross platform Oberon. Free of charge.
seems obc is rather old since it's part of http://www.zel.org/oberon/osci.htm since last millenaire. did something change in the obc specs in the meantime? (in 1999 obc e.g. lacked a GC.)
Spivey is an excentric, like Wirth, but the latter is a friendly excentric...
does that mean there is a risk the latter would get something like a "Spivey was even more excentric" as engraving on his philosopher's stone? :)
specific http://fruttenboel.verhoeven272.nl/obc/triples.html
oh, I see; it's not NWbench* (looks like a deep link to this website. :))
There's always a first program that cannot be written in the target language.
Now I see the reason why His (or rather Urs Amman's?) first pascal compiler (which generated p-code) was manually translated into p-code.
See http://fruttenboel.verhoeven272.nl/obc/obc7.html in the very last table of that page. obc ByteCode is 10 times faster than ACK object code.
couldn't find ACK in osci (s.a.). does newer mean it's a rather advanced compiler kit?
Einstein was not the kind of guy we would like to be friends with.
Kurt Goedel enjoyed AE's friendship - and vice versa. have you read it - the book - I mean? by Walter Isaacson; a nice Christmas present - pour votre chérie. ;)
So this quote is probably, like most of his others, without any value.
isn't underestimation less polite than understatement? people forgive everything, but not someelse's genius. oder so.
Einstein was rejected by ETHZ. So he went to Bern.
who knows if NW would have been rejected by ETHZ, we'd have Oberon rule the world instead of java con latte. Let's not burn the universities yet. After all, the damage they do might be worse. -- H. L. Mencken Mündig sind die Jungen dann, wenn sie zwitschern wie die Alten; man hetzt sie durch die [71] Schule, damit sie die alte Leier lernen, und haben sie diese inne, so erklärt man sie für mündig. -- MS À+, J'Sgarage *) The mother of all retro-benchmarks is on p66-70 in N. Wirth: The Personal Computer LILITH, ETH-Bericht Nr. 40, ETH-Zürich, April 1981. http://www.cfbsoftware.com.au/files080813/Lilith.pdf (I can send you the source of your pipe doesn't ocr.)
On Friday 26 November 2010 12:07:53 Joe Scrutiniz3r wrote:
seems obc is rather old since it's part of http://www.zel.org/oberon/osci.htm since last millenaire.
Yes, it is not new. I looked into it 4 or 5 years ago and was not really enthusiastic. I'm not sure whether I changed, or obc. But at the moment obc s a nice compiler for me. It produces a byte code that is relatively fast and portable among the two major operating systems of the era.
did something change in the obc specs in the meantime? (in 1999 obc e.g. lacked a GC.)
There seems to be a garbage collector included now.
couldn't find ACK in osci (s.a.). does newer mean it's a rather advanced compiler kit?
ACK. the Amsterdam Compiler Kit. The default compiler for Minix. With front ends for Modula-2, C, Pascal and many more. And many back ends as well. -- Met vriendelijke groeten, Jan Verhoeven http://www.verhoeven272.nl
participants (3)
-
Jan Verhoeven -
Joe Scrutiniz3r -
scruty at users.sourceforge.net