Python to FOCAL Compiler
|
10-07-2015, 04:38 PM
Post: #13
|
|||
|
|||
Java to FOCAL Compiler
(10-06-2015 03:58 PM)Gerson W. Barbosa Wrote: what about converting the fast algorithm presented by Hugh Steers here to RPN? Since the Java-VM is a stack-machine too we can do a similar thing with the generated byte-code. The original C-code can be used without major changes: Code: class Compiler { We compile this to a class-file and use javap to disassemble the code: javac Compiler.java javap -c Compiler This is what we get: Code: Compiled from "Compiler.java" Since a double occupies two registers only odd indexes are used. But we can still see the similarities to the generated FOCAL program using Python. Thus we could probably generate FOCAL programs from class-files as well. Kind regards Thomas |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python to FOCAL Compiler - Thomas Klemm - 10-05-2015, 10:58 PM
RE: Python to FOCAL Compiler - Sukiari - 10-06-2015, 03:36 AM
RE: Python to FOCAL Compiler - Massimo Gnerucci - 10-06-2015, 05:50 AM
RE: Python to FOCAL Compiler - Ángel Martin - 10-06-2015, 11:16 AM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-06-2015, 03:58 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015, 07:11 PM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-06-2015, 08:19 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015, 07:55 PM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-06-2015, 08:28 PM
RE: Python to FOCAL Compiler - Gerson W. Barbosa - 10-07-2015, 01:47 AM
RE: Python to FOCAL Compiler - Thomas Klemm - 10-07-2015, 04:34 AM
RE: Python to FOCAL Compiler - Massimo Gnerucci - 10-07-2015, 05:38 AM
Java to FOCAL Compiler - Thomas Klemm - 10-07-2015 04:38 PM
|
User(s) browsing this thread: 8 Guest(s)